Developer forum

Forum » Feature requests » New "DwTemplateTags" that only shows "item value tags"

New "DwTemplateTags" that only shows "item value tags"

Jacob Storgaard Jensen
Reply

Hi,

When doing templates for items, it's pretty annoying to have to shuffle around the DwTemplateTags index!

It would be great with a "DwItemValueTags" tag, only outputting the @Item.Something.Value tags as clean tags, not in a table or nothing... just <tag><tag><tag>

Just for us to copy the lot, and paste in our templates :-)

 


Replies

 
Mikkel Ricky
Reply

Using Razor you can get this list like this

<pre>@string.Join("\n", Values.Where(e => e.Key.StartsWith("Item.")))</pre>

Razor is the future. :-)