Copied to clipboard

Flag this post as spam?

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


  • Richard Walters 14 posts 51 karma points
    Jun 07, 2010 @ 19:03
    Richard Walters
    0

    Executing a macro within a field within a macro?

    Hello,

    My users need to be able to place links to downloadable PDF files within a RichText field in Umbraco documents.

    I have placed the PDFs in a Media folder, and then created an XSLT-based macro with a Media Picker (and a text param for the link text), which can be used in the editor. So far, so good; works like a charm.

    HOWEVER, the documents in question are news items, and also need to be displayed in a list format. An easy task, too, but the problem is that the macros in my "bodyText" field are completely stripped out by the XSLT generating the list. They generate no output whatsoever. So I have two questions:

    1. Is there a way to get the list macro to parse the macro references inside the bodyText field?
    2. If that's not possible, is there a smart way to refactor my solution so that it will work? (The number and placement of the PDF links is completely arbitrary, so I can use document properties to do so.)

    Thank you very much for any assistance you might be able to offer.

    Rick Walters

     

    Using Umbraco 4.0.4.1; ASP.NET 3.5; Windows 2008 Server w/ IIS 7.0

Please Sign in or register to post replies

Write your reply to:

Draft