[
http://jira.magnolia-cms.com/browse/MAGNOLIA-3007?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philipp Bärfuss updated MAGNOLIA-3007:
--------------------------------------
Fix Version/s: 4.2.4
(was: 4.2.x)
> PageIterator tag wrongly iterates on main content instead of current
> --------------------------------------------------------------------
>
> Key: MAGNOLIA-3007
> URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-3007
> Project: Magnolia
> Issue Type: Bug
> Affects Versions: 4.2, 4.2.1, 4.2.2, 4.1.4, 4.2.3
> Reporter: Fabrizio Giustina
> Assignee: Fabrizio Giustina
> Fix For: 4.2.4, 4.3
>
>
> PageIterator tag has been modified for the issue MAGNOLIA-2851 but the change
> break its common usage.
> MAGNOLIA-2851 says "PageIterator tag wrongly iterates over children of the
> current paragraph instead of the page" but the change does something pretty
> different: instead of iterating on the current content it iterates always on
> the main content (the page corresponding to the url).
> This totally breaks its common usage (which is identical for other tags). For
> example we were used to draw a site map by doing:
> {code}
> <cms:loadPage path="/my/homepage" />
> <cms:pageIterator>
> {code}
> in the past pageIterator was correctly iterating through pages into
> "/my/homepage", after upgrating to 4.2 now it always iterates on subpages of
> the current page/url. This also means there is no way to nest pageIterator
> tags for iterating on children of children and so on...
> So the current code was definitively more similar to the old one (except for
> the deprecate Resource class usage):
> {code}
> private void initContentIterator() {
> Content activePage =
> MgnlContext.getAggregationState().getCurrentContent();
> {code}
> instead of
> {code}
> private void initContentIterator() {
> Content activePage =
> MgnlContext.getAggregationState().getMainContent();
> {code}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.magnolia-cms.com/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------