Show subfolder's titles and short description on a page

Author Message

Safi Leo

Tuesday 02 September 2008 11:41:38 am

Hello,

I have a node tree

folder
subfolder 1
subfolder 2

and would like to show on the page folder titles and short description of the subfolders.

I'm very new to EZ and still have difficulties to figure out some things.

Any help would be appreciated. Thanks

Mike Coker

Wednesday 17 September 2008 4:35:58 am

Hi Leo,

In your override template for the folder full view you needs to fetch the children folders and then display them in a line view.

Mike Coker, BFA (Hons.)
Senior Designer & Strategist | Director

Quiqcorp Ltd | Web and Brand Development | Quiqcorp.com

Andrew Duck

Wednesday 17 September 2008 4:49:31 am

Hi Safi,

The underlying requirements for templates won't change, but it will depend a little on what you have done to your override.ini and templates at this point in time.

If you installed with the eZ Website Interface or eZ Flow you should have some nice templates that cover a majority of this functionality for you, with only minor tweaks.

You will require an override template for the full view of your folder, which in turn will do a fetch of your subfolders, and then display them using a line view or similar template.

If you are working with the ezwebin extension, a simple modification of <i>/extension/ezwebin/design/ezwebin/override/templates/full/folder.tpl</i> should get your subfolders displayed. If you look at lines 34-36, you will see that if the depth is less than 3 then folder and infobox are both excluded from the immediately following fetch. If you remove the folder option from these lines then you should start seeing your folders.

Regards,
Andrew

Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.