macroj
macroj

Reputation: 207

Select a specific node in umbraco

I have this select statement that selects all of the child nodes of what we do. How would I now select a specific one? See code below:

  <xsl:for-each select="$currentPage/ancestor-or-self::Homepage//WhatWeDoItems [@isDoc]">

</xsl:for-each>

There are four items in what we do. They have the document type of WhatWeDoItems and they are:

I need to select each one of them individually in order to display them on the home page. Am I going in the right direction or is there a better solution?

Upvotes: 0

Views: 638

Answers (1)

Petar Ivanov
Petar Ivanov

Reputation: 93020

You should probably post the whole XML, but if I understand correctly you can just use

<xsl:value-of select="$currentPage//WhatWeDoItems/corporate" />

Just create a XSLT macro with the code above and insert the macro in out template.

If you don't know how to do that look at the video tutorials:

Upvotes: 1

Related Questions