Hi Ryan
I basically want to iterate the content nodes of the paragraph
(several actually) and put the returned values in a map. Are there
performance disadvantages to using loadpage?
On Mar 10, 2008, at 9:37 PM, "Ryan Gardner" <[email protected]>
wrote:
Are you wanting to iterate over that page, or over content in that
page?
Honestly, I'd modify the LoadPage tag to allow a content to be
passed into it in order to make it easy to use existing tags like
this:
<cms:loadPage page="${pageYouGotFromScriptlet}" />
<cms:contentNodeIterator contentNodeCollectionName="name of
content to iterate over on that page" />
</cms:UnloadPage>
Although, in your case - I'd actually modify the cms:loadPage to
take a UUID value to cut out the scriptlet you had likely had to
throw in to grab the Content from the UUID already.
I actually already coded this up, but I haven't bothered testing it
or modifying the TLD.
Here's a diff file for LoadPage.java:
http://pastebin.us/?show=f2b1308ec
You'll have to apply the patch and the modify the TLD file to
mention the new attributes, then recompile and replace the jar file.
When I get done a few more things, I'll to the TLD up and submit a
patch to Jira. My TLD file right now has a lot of extra stuff in it
from other patches I've submitted recently, so it's a pain to have
to unapply all those patches and then apply this one in order to get
the line numbers right... etc.
If you don't feel like messing with this, then Giancarlo's
suggestions in the email I just saw him post seem good too :)
Ryan
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------