Help: Poll Template

For more help, visit the WebGUI Community Wiki.

canVote
A condition indicating whether the user has the right to vote on this poll.
question
The question to ask in the Poll.
form.start
The beginning of the poll form.
answer_loop
A loop containing information about the answers in the poll.
answer.form
The radio button for this answer.
answer.text
The text of the answer.
answer.number
The number of this answer. As in 1, 2, 3, etc.
answer.graphWidth
The width that the graph should be rendered for this answer. Based upon a percentage of the total graph size.
answer.percent
The percentage of the vote that this answer has received.
answer.total
The total number of votes that this answer has received.
form.submit
The submit button for the poll form.
form.end
The end of the poll form.
responses.label
The label for the total responses. "Total Votes"
responses.total
The total number of votes that have been placed on this poll.
graphUrl
A URL for the graph of Poll results. This will only be set if the Poll was set to generate a graph and the graph configuration is valid.
hasImageGraph
A .
templateId
The ID of the template used to display this Asset.
active
A conditional that is true if this Poll is open for voting.
karmaPerVote
The amount of karma given to a user when they vote.
graphWidth
The width of the graph in pixels.
voteGroup
The ID of the group that is allowed to vote in the Poll.
question
The question to ask in the Poll.
randomizeAnswers
A conditional that will be true if the Poll was set to randomize the order answers are presented.
aN
The variables a1 through a20 store the answers for the Poll.
graphConfiguration
The type of graph.
generateGraph
A conditional that will be true if the Poll was set to display a graph.
displayTitle
A conditional variable for whether or not the title should be displayed.
description
The description of this wobject.
styleTemplateId
The assetId of the template for displaying the Asset.
printableStyleTemplateId
The assetId of the template for displaying the Asset for printing.
assetId
The unique identifier for this Asset, in base64 encoding.
assetIdHex
The unique identifier for this Asset, in hexadecimal format.
title
The title of the Asset
menuTitle
The title of the Asset used in Navigations.
url
The Asset's URL.
isHidden
A boolean that will be true if this Asset is set not be displayed in Navigations.
newWindow
A boolean that will be true if this Asset is set open in a new browser window.
encryptPage
A boolean that will be true if this Asset is set to be served over SSL.
ownerUserId
The ID of the user who owns this Asset.
groupIdView
The ID of the group that is allowed to view this Asset.
groupIdEdit
The ID of the group that is allowed to edit this Asset.
synopsis
A short description of the contents of the Asset.
extraHeadTags
Extra tags that will be added to the header of the page containing the Asset. These will be included by default so you do not need to add them youself, unless you want them to be in there twice.
isPackage
A boolean that will be true if this Asset is set to be a Package.
isPrototype
A boolean that will be true if this Asset is set to be a prototype.
status
With respect to version control, the status of this Asset. Typically these are the English strings "approved", "pending", "committed".
assetSize
How big this asset is in bytes. The sum of all database fields and attachments.
keywords
This will be a string with the keywords for this asset. Individual keywords will be joined with spaces, unless the keyword contains spaces, in which case it will be quoted.
webgui.version
The version of WebGUI on your site.
webgui.status
The release status for this version of WebGUI (stable, beta, gamma, etc.)
session.user.username
The current user's username.
session.user.firstDayOfWeek
From the current user's profile, the day they selected to be the first day of the week.
session.config.extrasurl
From the WebGUI config, the URL for the extras directory.
session.var.adminOn
This variable will be true if the user is in Admin mode.
session.setting.companyName
From the WebGUI settings, the company name.
session.setting.anonymousRegistration
From the WebGUI settings, whether or not anonymous registration has been enabled.
session form variables
Session Form Variables
Any form variables will be available in the template with this syntax:
<tmpl_var session.form.variable>
If there is more than 1 value in a form variable, only the last will be returned.
session scratch variables
Session Scratch Variables
Any scratch variables will be available in the template with this syntax:
<tmpl_var session.scratch.variable>
controls
These are the icons and URLs that allow editing, cutting, copying, deleting and reordering the Asset.
 
 
Admin Console
Help: Poll Template
*
Admin Console