2011/8/2 ken manheimer <[email protected]>

> i've wanted for a long time to be able to show the contents of a folder,
> ordered as they would be in the folder, along with some text describing each
> item, plus some rich text above describing the folder, as a whole.  there is
> a number of combinations of various facilities that come close to providing
> this simple arrangement, but fail in tantalizing ways.  have i missed
> something?
>
> the obvious answer is to use a collection with "No sort order" for the
> sorting criterion.  unfortunately, "No sort order" doesn't wind up being the
> same sort order as that of the items in the folder, except sometimes, by
> accident.  (of course - the collection doesn't consults the catalog, not the
> folder, for the contents.)  that's a showstopper for me - what i really want
> is to be able to adjust the ordering of the items in the folder in order to
> adjust their ordering in the collection.
>
> the other tantalizingly close option is to just use a folder, with an
> (optionally, customized) summary, standard, or table view, and use the
> folder Description text as the introductory text.  alas, the folder
> Description is plain, not rich text.
>
> well, how about using a collage, with a folder inside it?  aargh, that's a
> mess - navigation portlets don't track the contents properly, etc.
>
> i know i should just create a derivative folder content type that has an
> additional, rich-text area before the listing (and after, if i really want).
>  unfortunately, i've given up on finding the time to do that, so i'm asking
> if anyone has faced the same need, and found a solution?
>
> ken
>
>
Hi,

To me this is just a custom view of a folder (even selectable via the a
Display menu) and the key is the method listFolderContents on the context
object.

Just add something like this on you pt:

<tal:content repeat="item context/listFolderContents">
    <h1 tal:content="item/Title">
Element title</h1>
    <p tal:content="item/Description">Element description</p>
    <div tal:content="structure item/Body">Element body</div>
</tal:content>


Cheers,



-- 

*Gil Forcada**
*C/Llacuna, 166 2n.2a (Edifici Llacuna)
telf: 93.188.88.12 - 619.65.34.92
fax: 93.320.93.97
(08018) BARCELONA
[email protected]
www.usecm.com
_______________________________________________
Product-Developers mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-product-developers

Reply via email to