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:
Is there a way to get the list macro to parse the macro references inside the bodyText field?
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
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:
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
is working on a reply...