Thanks for the info.

On 21.07.2009, at 13:58, Grégory Joseph wrote:

This class has two set of accessor methods for "currentContent" and "mainContent". These however do not seem to correspond to the Resource class getLocalContentNode() and getCurrentActivePage().

They should. (more or less; we probably got rid of a few unclear cases along the way)

Having a close look at how they are used, I could figure out the folowing:

- The currentContent first gets set to the page node then to all paragraph nodes and at the end back to the page node.

Yeah. Its the ${content} variable in your templates/paragraphs.

- The mainContent does not get set at all.

?
It's set by the AggregatorFilter.

If so, then AggregatorFilter does not use the accessor methods but some other method. I added a little debug message to the setter methods for currentContent and mainContent. This is what happened over the course of 1 page request with three paragraphs on it:

2009-07-21 17:22:52,887 DEBUG info.magnolia.cms.core.AggregationState : Setting main content to null 2009-07-21 17:22:52,887 DEBUG info.magnolia.cms.core.AggregationState : Setting current content to website:/schwab/de/schwab_ag/geschichte[mgnl:content] 2009-07-21 17:22:52,917 DEBUG info.magnolia.cms.core.AggregationState : Setting current content to website:/schwab/de/schwab_ag/geschichte/ mainColumnParagraphs/00[mgnl:contentNode] 2009-07-21 17:22:54,405 DEBUG info.magnolia.cms.core.AggregationState : Setting current content to website:/schwab/de/schwab_ag/geschichte/ mainColumnParagraphs/01[mgnl:contentNode] 2009-07-21 17:22:54,407 DEBUG info.magnolia.cms.core.AggregationState : Setting current content to website:/schwab/de/schwab_ag/geschichte/ mainColumnParagraphs/02[mgnl:contentNode] 2009-07-21 17:22:54,409 DEBUG info.magnolia.cms.core.AggregationState : Setting current content to website:/schwab/de/schwab_ag/geschichte[mgnl:content]

The mainContent is first set to null via the setter method. Afterwards this setter method is not called again. My next step would be to try to figure out who's setting the main content to null. Is it the AggregatorFIlter? If so, why does it set the mainContent to null? According to what you say, Grégory, it should correspond to Resource.getCurrentActivePage().

-will
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to