Miva Merchant 4 Module FAQs » Category Page Templates (BROK_CTGYTEMPLATES)


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:


And change the Radio option template to:

<TR><TD VALIGN = "top">
<TD VALIGN = "top">

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:


And in your "radio option row template:


And in your "radio option template" (simplified obviously):


and you had 6 attributes with prompts Prompt1 through Prompt6 you would end up with the html:



Last update: 2003-07-29 00:36
Author: Support
Revision: 1.0

Print this record Send FAQ to a friend Show this as PDF file
Please rate this FAQ:

Average rating: 0 out of 5 (0 Votes )

completely useless 1 2 3 4 5 most valuable

You cannot comment on this entry

Records in this category