Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran 292 posts 436 karma points
    May 17, 2010 @ 13:56
    Eran
    0

    XsltSearch Package: howto display page name instead of node name?

    hello,

    i'm using the XsltSearch Package and its great. also, for each page (document type) i added new property "contentPageTitle", that contains alternate name to display in the navigation menu (i'm creating page with node name in english and contentPageTitle in hebrew).

    in the navigation menu i' doing this:

    <xsl:value-of select="$rootTextpageNode/data[@alias='contentPageTitle']/text()"/>
    <xsl:if test="string($rootTextpageNode/data[@alias='contentPageTitle']/text()) = ''">   
        <xsl:value-of select="$rootTextpageNode/@nodeName"/>
    </xsl:if>

    and its works fine.

    in the XsltSearch i want to do the same, but i'm dont manage to do that.

    instead of:

    <!-- page name and url -->
    <a href="{umbraco.library:NiceUrl(@id)}" class="xsltsearch_title">
    <xsl:value-of select="./@nodeName"/>                                       
    </a>

    i want to display the pahe name that stored in the property "contentPageTitle".

    how can i do that?

    thanks!,

    Eran.

  • Sebastiaan Janssen 5060 posts 15522 karma points MVP admin hq
    May 17, 2010 @ 13:57
    Sebastiaan Janssen
    1

    This should work:

    <!-- page name and url -->
    <a href="{umbraco.library:NiceUrl(@id)}" class="xsltsearch_title">
    <xsl:value-of select="./data[@alias='contentPageTitle']"/>                                        
     </a>
  • Eran 292 posts 436 karma points
    May 17, 2010 @ 16:33
    Eran
    0

    thanks, works great!

Please Sign in or register to post replies

Write your reply to:

Draft