Difference between revisions of "Join Option Box vs Button"
From TMM Wiki
Jump to navigationJump to searchTmmStephen (talk | contribs) |
TMMStephenY2 (talk | contribs) |
||
Line 6: | Line 6: | ||
}} | }} | ||
− | + | [[NATS]] allows you to display radio buttons as an alternative to a select box on the ''join option'' section of the [[ct#Join Form|Join Form]]. To add this feature, go to [[Sites Admin]], then click the Edit Site Templates icon. | |
− | section of the [[ct#Join Form|Join Form]]. | + | |
− | in the [[ct#Template|template]]: | + | Once you are in Edit Site Templates, select the template named ''join'' to edit your Join Form. When you have opened the ''join'' site template, replace your old code with the new code, below, in the [[ct#Template|template]]: |
'''Old: Select Box''' | '''Old: Select Box''' | ||
Line 18: | Line 18: | ||
'''New: Radio Buttons'''<br> | '''New: Radio Buttons'''<br> | ||
− | For | + | For NATS 4 use: |
<pre> | <pre> | ||
{html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"} | {html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"} | ||
</pre> | </pre> | ||
− | The $join_optionids.0 | + | The $join_optionids.0 variable will automatically set the selected radio button to the first option listed. |
− | For | + | For NATS 3 use: |
<pre> | <pre> | ||
{html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"} | {html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"} |
Revision as of 15:28, 8 June 2010
NATS 3
|
---|
NATS allows you to display radio buttons as an alternative to a select box on the join option section of the Join Form. To add this feature, go to Sites Admin, then click the Edit Site Templates icon.
Once you are in Edit Site Templates, select the template named join to edit your Join Form. When you have opened the join site template, replace your old code with the new code, below, in the template:
Old: Select Box
<select name="signup[optionid]" class="join_select"> {html_options options=$join_options selected=$vars.optionid} </select>
New: Radio Buttons
For NATS 4 use:
{html_radios name="signup[optionid]" options=$join_options selected=$join_optionids.0 separator="<br>"}
The $join_optionids.0 variable will automatically set the selected radio button to the first option listed.
For NATS 3 use:
{html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"}