Developer forum

Forum » Templates » Page item in xslt navigation

Page item in xslt navigation

Jonas Mersholm
Reply

Hi.

How would i use page item attributes in a XSLT template? Lets say i have a page-item called link, with basic functionality like: Href, Target, Alt and text. How would i get those properties in the XSLT?

 

Ive tried stuff like:

select="@Link.Link"

select="@Link"

select="@Item.Link"

 

Without any effects.

When outputting the XSLT to XML, i see the "ItemType" is set, but no properties attached. 

Morten mentioned in this thread: http://developer.dynamicweb.com/forum/cms-standard-features/page-item-in-xslt.aspx 

That this is possible after v. 8.4, but how do i utilize it?

 

Thanks in advance.

Jonas


Replies

 
Nicolai Høeg Pedersen
Reply

 Hi Jonas

If you extend the page properties with an item type on website settings, the page nodes should get the values from the fields of that item type, if set. If you are using Ecommerce navigation, that does not work unless you are on the newest 8.6.1

NP

 
Jonas Mersholm
Reply

Hi Nicolai,

I do not extend it with the website settings. The page is an ItemType.  ( Right click -> Add new page -> Select item type )

In the XML output from SaveXML it saies  ItemType="link" but does not provide me the attributes for the item.

 

Thanks

 
Nicolai Høeg Pedersen
Reply

ok, item type of the page is not available - only fields from page properties items.

 

You must be logged in to post in the forum