[ic] IC Tags and CSS IDs

danb at berganconsulting.com danb at berganconsulting.com
Thu Aug 17 17:40:53 EDT 2006


Quoting Kevin Walsh <kevin at cursor.biz>:

> danb at berganconsulting.com wrote:
>> Is there a way to get CSS IDs to "pass through" interchange tags?
>>
>> I'm using the <label> tag, so I would like to do the following:
>> <p><label for="b_country">[error name=b_country
>> std_label="[L]Country[/L]" required=1]</label>
>> [display type=country_select name=b_country value="[value country]"
>> class="sel" id="b_country"]
>> </p>
>>
>> The "class" is output by the display tag, but the id is not.
>>
>> I also tried the same thing with the [shipping] tag:
>> [shipping widget=select class=sel id=shipping_method]
>>
>> Again, the class is present in the output, but the id is not.
>>
>> Am I doing something incorrectly, or is this not possible?
>>
> Try the "extra" parameter in your [display] call:
>
>     [display
>         type=country_select
>         name=b_country
>         value="[value country]"
>         class=sel
>         extra=|id="b_country"|
>     ]
>
> Also in your [shipping] call:
>
>     [shipping
>         widget=select
>         class=sel
>         extra=|id="shipping_method"|
>     ]
>

Thanks Kevin and Racke!  That's exactly what I was looking for!

Dan





More information about the interchange-users mailing list