Difference between revisions of "Join Option Box vs Button"
TMMStephenY2 (talk | contribs) |
TMMStephenY2 (talk | contribs) |
||
Line 6: | Line 6: | ||
}} | }} | ||
− | [[ | + | [[NATS4]] offers the feature of allowing you to display radio buttons as opposed to a drop-down menu or select box in the ''join option'' section of the [[NATS]] [[Ct#Join Form|Join Form]]. |
− | + | If you would like to add this feature, navigate to the [[NATS4 Sites Admin|Sites Admin]], then click the "Edit Site Templates" icon next to the site you would like to change join option displays for. | |
+ | |||
+ | On the "Edit Site Templates" page, find the site template named ''join'' to edit your default Join Form. Click the customize icon to edit your [[Ct#Template|template]], and replace your old code (shown below) in the Template Body with the new code given below: | ||
'''Old: Select Box''' | '''Old: Select Box''' | ||
Line 23: | Line 25: | ||
</pre> | </pre> | ||
− | The $join_optionids.0 variable will automatically set the selected radio button to the first option listed. | + | The ''$join_optionids.0'' variable above will automatically set the selected radio button to the first option listed. |
− | For NATS 3 use: | + | For NATS 3, use the following code instead: |
<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 16:24, 3 August 2010
NATS 3
|
---|
NATS4 offers the feature of allowing you to display radio buttons as opposed to a drop-down menu or select box in the join option section of the NATS Join Form.
If you would like to add this feature, navigate to the Sites Admin, then click the "Edit Site Templates" icon next to the site you would like to change join option displays for.
On the "Edit Site Templates" page, find the site template named join to edit your default Join Form. Click the customize icon to edit your template, and replace your old code (shown below) in the Template Body with the new code given below:
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 above will automatically set the selected radio button to the first option listed.
For NATS 3, use the following code instead:
{html_radios name="signup[optionid]" options=$join_options selected=$vars.optionid separator="<br>"}