I just noticed the title of the question has been updated. I'm not sure you understand what i'm looking for. Maybe i was not clear enough.
In a DWT i have the following block of code:
<div class="contactBloc">
<legend class="hidden">@@Component.Fields.theme_title@@</legend>
<h2>@@Component.Fields.theme_title@@</h2>
<div class="fieldset">
<ul id="selectTheme">
<!-- TemplateBeginRepeat name="Component.Fields.theme" -->
<li><a tridion:href="@@Field.theme_form@@" rel="">@@Field.theme_name@@</a></li>
<!-- TemplateEndRepeat -->
</ul>
<span class="clear"> </span>
</div>
</div>
in the "a" tag above, the href attribute contains for instance "/contact/contact.aspx"
This is how it works right now!
Now, i don't use any "a" tags anymore, i have to use a "input" tag instead. Therefore, i want to display "/contact/contact.aspx" in the "rel" attribute of the "input" tag.
Instead of
<a tridion:href="@@Field.theme_form@@" rel="">@@Field.theme_name@@</a>
i tried, as you wrote:
<input type=""checkbox" tridion:href="@@Field.theme_form@@" tridion:targetattribute="rel">@@Field.theme_name@@</a>
But in the code generated, i have no rel and what href contains instead of "/contact/contact.aspx" is just "tcm:XX-XXXX"
Thanks for your help
tridion:linkAttributes
. See this question from some info: stackoverflow.com/questions/12046332/… and tridion.stackexchange.com/questions/2346/…type=""checkbox"
- also, not sure if this is necessary but in Nuno's example he includes a dummyrel
attribute.