I am building an XSLT function, and have some selected Ids from SitemapXml. These Ids are for pages, and the pages have content placeholders in their templates. I would like to work with in my XSLT function the otherwise rendered & executed content from
a particular location on various other pages, by reference.
How can I get--in an XSLT function--the content of a particular template placeholder (MyContent for example), given a Page Id?
<!-- Page template bit: -->
<rendering:placeholder id="mycontent" title="MyContent" />
<!-- Xslt Bit -->
<!-- How to get rendered contents of MyContent from this Id? -->
The goal is to create "teasers" from a list of page ids. Each teaser will contain actual content from the "MyContent" area of the page, up until a BREAK string (if such a string exists, otherwise a set number of words). The placeholder
could be wrapped in an identifiable div, if that helped.
Another approach might be: This teaser-bit of info could instead be set up as a metadata item on a page, that is, after content on a page is updated or created, some action occurs to create the teaser abstract and store it. Then the teaser/intro could be
fetched with Get(Teasers)Xml and PageIds matched.
If this second approach were employed, can I set up this sort of action declaratively in markup anywhere, or is C# the only way to handle Add & Edit (like I saw used in the Blog package for url titles)? Still, how do I find the newly created or updated
actual content of a placeholder, even in C#? Sorry if this is a silly question, but I have most of the rest all set up, so I hope it makes sense!