Copied to clipboard

Flag this post as spam?

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


  • Jukka-Pekka Keisala 90 posts 226 karma points
    Jan 31, 2010 @ 19:01
    Jukka-Pekka Keisala
    0

    How do I get list of nodes that contains certain tag?

    Is there a xslt helper that gives me a list id's or something that helps me show every page that contains certain tag? I was looking tagsLib but seems like there is nothing suitable? I am looking something like getNodesWithTag("Event")

  • Gerty Engrie 130 posts 490 karma points c-trib
    Jan 31, 2010 @ 19:33
    Gerty Engrie
    0

    $currentPage/ancestor-or-self::node[@nodeTypeAlias='Homepage']/descendant::node[data[@alias='tags'] != '' and contains(data[@alias='tags'],'Event')]

    a for-each over the above should work when adjusting the path :-)

     

Please Sign in or register to post replies

Write your reply to:

Draft