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.

eZ debug

Timing: Jan 18 2025 19:26:12
Script start
Timing: Jan 18 2025 19:26:12
Module start 'layout'
Timing: Jan 18 2025 19:26:12
Module start 'content'
Timing: Jan 18 2025 19:26:13
Module end 'content'
Timing: Jan 18 2025 19:26:13
Script end

Main resources:

Total runtime0.9067 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 589.6250152.6563
Module start 'layout' 0.00760.0037 742.281339.4922
Module start 'content' 0.01130.8942 781.7734580.1094
Module end 'content' 0.90540.0012 1,361.882812.1094
Script end 0.9067  1,373.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4005160.0002
Check MTime0.00150.1642160.0001
Mysql Total
Database connection0.00180.194410.0018
Mysqli_queries0.851293.8799590.0144
Looping result0.00060.0607570.0000
Template Total0.869995.920.4349
Template load0.00220.241120.0011
Template processing0.867795.690320.4338
Template load and register function0.00020.020510.0002
states
state_id_array0.00140.157210.0014
state_identifier_array0.00160.171020.0008
Override
Cache load0.00190.2065240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.084530.0003
Fetch class attribute name0.00110.122550.0002
XML
Image XML parsing0.00130.144930.0004
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00100.1155250.0000
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs