In such advanced cases you can use IMarkupWriter.getNestedWriter():
When rendering the page:
- render all FaqItems to a nested writer
- render the FaqSummary itself
- close() the nested writer (which implicitly commits its content to the main writer)

Regards,
Norbert Sándor

Jean-Eric Cuendet wrote:
Hi,
While creating a FAQ page, I made a component that takes a Title + a Body, then render it with a counter in the page for the FAQ number. Adding a FAQ is as simple as writing:
  <span jwcid="@FaqIten" title="The title">
  This is the body of this FAQ item
  </span>

But then I'd like a FAQ summary, taking all titles of all the FaqItems and put them at the *beginning* of the page. So each FaqItem would register its title in a collection in the page and then the FaqSummary component take that collection and render it as a Summary. My problem is how to make the FaqSummary render itself *after* all the FaqItem are rendered?

Thanks
-jec


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to