Copied to clipboard

Flag this post as spam?

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


  • anthony hall 222 posts 536 karma points
    Feb 15, 2009 @ 19:58
    anthony hall
    0

    How to add current node to marco

    I thought i posted this quesiton? Anyway here goes again.



    Wondering how to add the current node into the following macro. ie imageID





    I can PageField 'MyImage' that returns my current node. So really this just a syntax question.

    I basically want to do something like



    any thoughts?

  • Scott Hugh Alexandar Petersen 349 posts 164 karma points
    Feb 15, 2009 @ 21:32
    Scott Hugh Alexandar Petersen
    0

    What about doing a



    in your XSLT file?

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 16, 2009 @ 08:26
    Dirk De Grave
    0

    Hi Anthony,

    If you need to send in a property MyImage into the macro, you could use:

    [code][/code]

    And what is that macro supposed to do? Get the image url for the image node? In that case you no longer need to use a macro, you could use some inline xslt to get the image

    Have a look at this url http://umbraco.org/documentation/books/inline-xslt for a brief expl on using inline xslt.

    Regards,
    /Dirk

  • anthony hall 222 posts 536 karma points
    Mar 04, 2009 @ 12:33
    anthony hall
    0

    thanks Dirk, very useful link.


    .wrapper-portfolio
    {
    background-image: url('');

    }

  • 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