Developer forum

Forum » Templates » using dynamicweb html-tags within attributes

using dynamicweb html-tags within attributes

Martin Kure
Reply

Hi, 

I'm using a dynamicweb html-tag within an attribute, but it seems to be rendered as part of the string, which means I'm not getting any data:

<ul class="dwnavigation nav navbar-nav navbar-right" id="navbar" settings="startlevel:1;endlevel:7;template:LIClean.xslt;parentid:<!--@Item.Area.Sekund_rMenu.Value-->;expandmode:all">
    </ul>

It seems, that because, I'm writing the dynamiweb-tag within an attribute, it's not being rendered. I'm not getting any values from it. It's there a way to retrieve the data within an attribute?

BR

Martin


Replies

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Martin

You cannot do this. Them dwnavigation item is 'unfolded' when the layout file is parsed - see the parsed file in _Parsed folder.

It seems like you are using the same layout on 2 websites - you can use "parenttag:sometag" instead of parentid - see the documentation.

BR Nicolai

Votes for this answer: 1
 
Martin Kure
Reply

Hi Nicolai, 

thank you very much for your time and answer.

BR

Martin

 

You must be logged in to post in the forum