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

Article tags to foreach

$
0
0
Hi, can you please help me how to do do this transformation in ASCX? I am creating transformation for Article Repeater and I need to get the tags of that article. I saw some answers here, but they are not working https://devnet.kentico.com/questions/foreach-loop-in-transformationI was trying to do it like this:@% foreach (var tagName in GetSearchValue(@DocumentTags@).Split(@,@)) { %@ @li@@a href=@your link here@@@%= tagName %@@/a@ @% } %@ It returns Error message [TempITemplate.Template]: http://server/CMSVirtualFiles/Transformations/=vg=25857332-dd58-4094-b8eb-7bc1d4915921/Conseq.Article/ConseqNewsBox.ascx(17): error CS1061: 'object' does not contain a definition for 'Split' and no extension method 'Split' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)But it is not working. Thanks for helping. Zbynek :)

Viewing all articles
Browse latest Browse all 8866

Latest Images

Trending Articles



Latest Images