Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8901

Kentico - Adding an anchor tag in a repeater transformation

$
0
0
I have an Accordion Tab repeater that I would like to add an anchor tag to each unique title within the transformation.Here is my code:@li@ @a href=@#tab-@%# DataItemIndex+1%@-@%# Container.Parent.Parent.ClientID %@@ title=@@%# Eval(@Title@) %@@@ @span class=@tab-item-title@@@%# Eval(@Title@) %@@/span@ @span class=@ui-icon@@@/span@ @%# String.IsNullOrEmpty(Eval@string@(@MainText@)) ? @@ : @@div class=\@tab-item-subtitle\@@@ + Eval(@MainText@) + @@/div@@ %@ @/a@ @/li@ I tried adding:@a id=@@%# Eval(@AnchorLinkName@) %@@ name=@@%# Eval(@AnchorLinkName@) %@@@@/a@, but it didnt work.

Viewing all articles
Browse latest Browse all 8901

Trending Articles