Copied to clipboard

Flag this post as spam?

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


  • David Conlisk 432 posts 1008 karma points
    Apr 04, 2012 @ 12:00
    David Conlisk
    0

    Getting a node property using a macro parameter with new xml format

    Hi guys,

    In the old days you could define a parameter to your macro, like $imageAlias, and then retrieve a different attribute of your node by doing $currentPage/data[@alias = $imageAlias]

    What is the equivalent with the new syntax? Obviously $currentPage/$imageAlias won't work.

    Cheers!

    David

  • Dan Okkels Brendstrup 101 posts 197 karma points
    Apr 04, 2012 @ 13:40
    Dan Okkels Brendstrup
    1

    Hi David,

    You should be able to achieve the same thing with a $currentPage/*[name() = $imageAlias].

  • David Conlisk 432 posts 1008 karma points
    Apr 04, 2012 @ 15:15
    David Conlisk
    0

    Brilliant! Just what I was after. #h5yr!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies