I need to catch the name of a page in the menu hierarchy, but forgot the tag
Quick help anyone?
Page lvl 1
Page lvl 2 (need to catch this name)
Page lvl 3 (i am here)
Developer forum
E-mail notifications
Name of the page
Morten Vallentin
Posted on 16/05/2012 15:07:20
Replies
Vladimir
Posted on 21/05/2012 04:37:18
Hi Morten,
Best regards,
Vladimir
<xsl:if test="@AbsoluteLevel>2"> <xsl:value-of select="../@MenuText" disable-output-escaping="yes"/> </xsl:if>
Vladimir
Morten Vallentin
Posted on 21/05/2012 14:53:49
Hi Vladimir,
Thanks, i will keep this for a time, when I have the skills to work the xslt.
In the meantime what i am really looking for - I'm sure it exists - is the "native" DW tag for catching a Pagename on a certain level.
Kind regards
Thanks, i will keep this for a time, when I have the skills to work the xslt.
In the meantime what i am really looking for - I'm sure it exists - is the "native" DW tag for catching a Pagename on a certain level.
Kind regards
Vladimir
Posted on 22/05/2012 12:08:25
Hi Morten,
I' afraid that there is no such tag... but you can create a page template extender, something like:
Best regards,
Vladimir
I' afraid that there is no such tag... but you can create a page template extender, something like:
Dim currentPage As Frontend.Page = PageView.Current.Page Dim parentPage As Frontend.Page = PageView.Current.Page.FindPage(Base.ChkInteger(currentPage.Value("PageParentPageID"))); template.SetTag("@ParentName", parentPage.Name)
Vladimir
Imar Spaanjaars
Posted on 22/05/2012 12:28:30
Small correction:
should be:
without the @. That has thrown me off a couple of times in the past ;-)
Imar
template.SetTag(
"@ParentName"
, parentPage.Name)
should be:
template.SetTag(
"ParentName"
, parentPage.Name)
without the @. That has thrown me off a couple of times in the past ;-)
Imar
Vladimir
Posted on 23/05/2012 02:51:34
Hi Imar, you are right, thank for correction.
Vladimir
Vladimir
You must be logged in to post in the forum