Copied to clipboard

Flag this post as spam?

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


  • Steve 472 posts 1216 karma points
    Jan 06, 2016 @ 16:14
    Steve
    0

    Select node by node name or type alias

    I have a group of news articles that need to be pulled in for a for a slideshow. I am trying to grab only the articles saved in a node type of "NewsCategory", but only within the node with the alias of "Alumni". Here is what I have, but it's not pulling anything in. What's wrong with my syntax?

    <xsl:variable name="articleNode" select="$siteRoot/NewsHome/NewsCategory[@alias='Alumni']/DateFolder" />
    
  • Steve 472 posts 1216 karma points
    Jan 06, 2016 @ 16:26
    Steve
    1

    I figured it out. I needed @nodeName = 'Alumni'.

    <xsl:variable name="articleNode" select="$siteRoot/NewsHome/NewsCategory[@nodeName = 'Alumni']/DateFolder" />
    
Please Sign in or register to post replies

Write your reply to:

Draft