[ 
http://jira.magnolia-cms.com/browse/MAGNOLIA-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gregory Joseph closed MAGNOLIA-624.
-----------------------------------

    Resolution: Obsolete

I'm closing this, assuming this is entirely possible with the current tag 
libraries. If not, feel free to reopen.

> New cms:contentIterator Tag and usage examples
> ----------------------------------------------
>
>                 Key: MAGNOLIA-624
>                 URL: http://jira.magnolia-cms.com/browse/MAGNOLIA-624
>             Project: Magnolia
>          Issue Type: Improvement
>          Components: taglibs
>    Affects Versions: 2.1.3
>            Reporter: Andreas Brenk
>            Assignee: Fabrizio Giustina
>            Priority: Trivial
>         Attachments: ContentIterator.java, opml-outline.jspx, opml.jspx, 
> sitemap-url.jspx, sitemap.jspx
>
>
> The attached files create a new cms:contentIterator tag and demonstrate its 
> usage to create a Google Sitemap or OPML outline of the active page and all 
> children. For this the files opml.jspx and sitemap.jspx should preferably be 
> used as SubTemplates.
> In addition to the attached tag implementation the following lines have to be 
> added to the respective files.
> info.magnolia.cms.util.Resource:
>     /**
>      * Set the request's <code>actpage</code> attribute to <code>page</code>
>      */
>     public static void setCurrentActivePage(HttpServletRequest request, 
> Content page) {
>         request.setAttribute(Aggregator.CURRENT_ACTPAGE, page);
>     }
>     /**
>      * Restores the request's original <code>actpage</code> attribute
>      * (i.e. the one specified by the request URI).
>      */
>     public static void restoreCurrentActivePage(HttpServletRequest request) {
>         setCurrentActivePage(request, getActivePage(request));
>     }
> cms-taglib.tld:
>     <tag>
>         <name>contentIterator</name>
>         <tag-class>info.magnolia.cms.taglibs.ContentIterator</tag-class>
>         <body-content>JSP</body-content>
>         <description>iterate over Content collection</description>
>         <attribute>
>             <name>hiddenAttribute</name>
>             <required>false</required>
>             <rtexprvalue>true</rtexprvalue>
>             <description>If a page contains a boolean property with this name 
> and it is set to true,
>                          the page is skipped by the iterator. Defaults to 
> "hidden".</description>
>         </attribute>
>     </tag>

-- 
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]>
----------------------------------------------------------------

Reply via email to