On Jul 21, 2009, at 9:39 AM, Will Scheidegger wrote:
I'm trying to track down a bug in 4.1.1 which makes the inherit flag
on the tags fail. From what I figured out so far, I think it must be
related to the fact that the Resource class is deprecated now and
replaced by AggregationState.
AggregationState has been there since 3.5, effectively replacing
Resource, but somehow, it seems the deprecated state of the latter
wasn't clear, indeed.
However I have troubles understanding how AggregationState should
work properly.
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.
Can anyone tell me what the idea behind this is?
The "idea" is the same as it was with "Resource", having access to
both the current page's node and whichever subnode is being rendered.
-g
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------