See http://jira.magnolia-cms.com/browse/MAGNOLIA-2669
On 21.07.2009, at 09:09, Will Scheidegger wrote:
After some further digging:
Resource.getLocalContentNode() now simply returns
MgnlContext.getAggregationState().getCurrentContent(). And by the
name of this method i would say that it does not care if one is
inside a node collection iterator (i.e. "local content node") or not.
On the other hand there is a "getMainContent()" method too in
AggregationState. Should that correspond to
Resource.getGlobalContentNode(), or maybe to
Resource.getCurrentActivePage()?
Unfortunately the methods are not documented (neither in javadoc nor
the code itself). So if someone with a better understanding of this
could give me a pointer...? Thanks!
-will
On 21.07.2009, at 08:49, Will Scheidegger wrote:
Thanks for the reply.
No, it does not seem to be the problem you are referencing. I'm
trying to "inherit" a page property outside of any
contentNodeIterator. The "resolveNode()" method in the
BaseContentTag class uses "Resource.getLocalContentNode()" to check
if the tag called is located inside a node collection iterator.
However the problem seems to be that Resource.getLocalContentNode()
is returning the page node when outside of a contentNodeIterator.
At this time I see two possibilities:
a) Resource.getLocalContentNode() is wrong and should return null
if on is not inside a node collection iterator.
b) Checking Resource.getLocalContentNode() to determine if one is
inside a node collection iterator is wrong.
No clue however if a or b... "Resource" seems to be deprecated in
the first place now.
-will
On 20.07.2009, at 17:35, Thomas Duffey wrote:
On Jul 20, 2009, at 10:18 AM, Will Scheidegger wrote:
Now I'm trying to port a Mag 3.6 site to Mag 4.1. Two things I
noticed:
a) <cms:out ... inherit="true" /> does not seem to work anymore.
Do docs however still list this as valid attribute. Can anyone
second this? Bug or am I missing something?
Could be related to this:
http://jira.magnolia-cms.com/browse/MAGNOLIA-2806
I found that the 'inherit="true"' flag no longer worked on the
contentNodeIterator tag and submitted a patch for review.
Tom
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------