Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)
This feature was added in version 4.72 (non compiled)/4.73c (compiled). There is now a template area, "Radio option row template", on the "attributes" tab for templates. In this field you can define a "row" template to be used to display the radio options in rows. This feature works similarly to other "row templates", for example, the category row template, found in this module. By default it displays them singly. To display two across, change the %options% token in the Radio attr. template area to %rows%. Change the "Radio option row template" to:
<tr><td>%option|01|%</td><td>%option|02|%</td></tr>
And change the Radio option template to:
<table>
<TR><TD VALIGN = "top">
%fields%
</TD>
<TD VALIGN = "top">
%prompt%
</TD></TR>
</table>
By way of further explanation:
The row template defines a "row" of a table (if you will) while the option template defines what goes in each cell of that row. I.e. the contents of the option template are used to replace each %option|0x|% in the row template.
So if you had in your Radio attr. template:
<table>
%rows%
</table>
And in your "radio option row template:
<tr><td>%option|01|%</td><td>%option|02|%</td><td>%option|03|%</td></tr>
And in your "radio option template" (simplified obviously):
%prompt%
and you had 6 attributes with prompts Prompt1 through Prompt6 you would end up with the html:
<table>
<tr><td>Prompt1</td><td>Prompt2</td><td>Prompt3</td></tr>
<tr><td>Prompt6</td><td>Prompt5</td><td>Prompt6</td></tr>
</table>
Most Recent FAQ Entries:
Top 10
Displaying Radio Options In Rows
Is it possible to display the radio options in rows? (2003/04/25)
This feature was added in version 4.72 (non compiled)/4.73c (compiled). There is now a template area, "Radio option row template", on the "attributes" tab for templates. In this field you can define a "row" template to be used to display the radio options in rows. This feature works similarly to other "row templates", for example, the category row template, found in this module. By default it displays them singly. To display two across, change the %options% token in the Radio attr. template area to %rows%. Change the "Radio option row template" to:
<tr><td>%option|01|%</td><td>%option|02|%</td></tr>
And change the Radio option template to:
<table>
<TR><TD VALIGN = "top">
%fields%
</TD>
<TD VALIGN = "top">
%prompt%
</TD></TR>
</table>
By way of further explanation:
The row template defines a "row" of a table (if you will) while the option template defines what goes in each cell of that row. I.e. the contents of the option template are used to replace each %option|0x|% in the row template.
So if you had in your Radio attr. template:
<table>
%rows%
</table>
And in your "radio option row template:
<tr><td>%option|01|%</td><td>%option|02|%</td><td>%option|03|%</td></tr>
And in your "radio option template" (simplified obviously):
%prompt%
and you had 6 attributes with prompts Prompt1 through Prompt6 you would end up with the html:
<table>
<tr><td>Prompt1</td><td>Prompt2</td><td>Prompt3</td></tr>
<tr><td>Prompt6</td><td>Prompt5</td><td>Prompt6</td></tr>
</table>
Last update: 2003-07-29 00:36
Author: Support
Revision: 1.0
You cannot comment on this entry
Most Recent FAQ Entries: 
- Alternate ways to display the product and attribute data ... (2008-09-02 18:40)
- Adding both "Add All to Basket" and "Add to ... (2008-09-01 09:46)
- When adding a product to the basket from an ... (2008-08-27 19:02)
- I have the module configured to add the key ... (2008-08-13 14:50)
- What is the format for the htaccess file if ... (2008-08-12 14:50)
Top 10 
- 2921 views:
Adding Tokens to Evaluate Expressions - 2852 views:
Is there a way to "Limit" the number of ... - 2776 views:
Why won't you call me for technical support? I ... - 2665 views:
Are license keys valid for more than one store? ... - 2566 views:
I'm trying to enter a license key and get ... - 2555 views:
How do I install a module? - 2397 views:
How do I check for a module upgrade? - 2363 views:
How can display and change the parameters of an ... - 2210 views:
The total on my checkout pages are not correct. ... - 2011 views:
I have select and radio type attributes in my ...
















