Copied to clipboard

Flag this post as spam?

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


  • Tom Maton 387 posts 660 karma points
    Feb 26, 2009 @ 15:09
    Tom Maton
    0

    Getting all added macros in content area

    Hi All,

    I have a macro which inserts into the content area a title and some content. The client can add a number of these items to the page.

    For example an editor can add 5 of these to the page.

    What I need to do is retrieve all these 5 macros and then I can format them in the XSLT.

    I cant see anything appropriate in the Umbraco API which will allow me to do this.

    Any help would me greatly appreciated.

    Thanks

    Tom

  • Darren 6 posts 20 karma points
    Mar 23, 2009 @ 21:44
    Darren
    0

    Sounds like your structure is all wrong, On my site i have something similar but my macro and xslt is in the parent node, then the xslt loops through all child nodes and outputs the results.

    - parent(contains template,xslt and macro)
    ---child 1 (title, content)
    ---child 2 (title content)
    ---child 3 (title content)
    etc
    etc

  • Tom Maton 387 posts 660 karma points
    Mar 23, 2009 @ 22:24
    Tom Maton
    0

    Yep it was. When I thought about it again it was simple how to do it.
    Thanks for replying though

    Tom

Please Sign in or register to post replies

Write your reply to:

Draft