Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...XSLT Menu template - get Page Title and Page nameXSLT Menu template - get Page Title and Page name
Previous
 
Next
New Post
4/25/2014 8:20 AM
 
I am trying to modifying the menu XSLT file.

I need to display PageName instead of PageTitle.


There is
 <xsl:value-of select="TabName"/>

and It is displaying the page title which I used in the page settings.

What I can use for PageName?

I want to use both PageName and Page title in this XSLT file for default and hover text. I know how to change this for hover.

Just want to know how to get Page Name and Page Title. in the XSLT file.

Appreciate if you can advise.

<xsl:if test="HasChildren ='False'">

<a id="current" href="{FullUrl}">

                    <span>

                      <xsl:value-of select="PageName"/>

                    </span>

                    <span class="shh">

                      <xsl:value-of select="TabName"/>

                    </span>

</a>

 

</xsl:if>

 

 
New Post
4/27/2014 5:23 PM
 

I think you are looking for either 'Node' or 'Text'

 see here for the reference

http://www.dnnsoftware.com/wiki/page/ddrmenu-xslt-templates

 
New Post
4/28/2014 12:16 AM
 
I've tried those tokens and still it is same.

<xsl:when test="(IsCurrent='True')">
<xsl:if test="HasChildren ='True'">
<a id="current" href="{FullUrl}" class="dir">
<xsl:value-of select="TabName"/>
</a>
</xsl:if>
<xsl:if test="HasChildren ='False'">
<a id="current" href="{FullUrl}">

                    <span>
                      <xsl:value-of select="TabName"/>
                    </span>
                    <span class="shh">
                      <xsl:value-of select="TabName"/>
                    </span>

                    

 

</a>
</xsl:if>
</xsl:when>

I want to get "TabTitle" and "TabName". But it is giving only TabName only.

Appreciate if you can help me.
 
New Post
4/28/2014 7:58 AM
 
<xsl:value-of selct="@title"></xsl:value-of>xsl:value-of select="@title"
 
New Post
4/28/2014 9:37 AM
 
Thanks for the reply Armand. But when I use
<xsl:value-of select="@title"></xsl:value-of>
as per your suggestion, it is giving an empty value. Not giving any value for that.

I can give you the full XSLT file if it helps. Please help me for this.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...XSLT Menu template - get Page Title and Page nameXSLT Menu template - get Page Title and Page name


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out