Question about show children

Author Message

Heiner Wurbs

Friday 20 May 2005 1:10:35 am

Hi,

I do not understand the functionality of the "Show children" check box on folders. There is no difference, if I check it or not.

Can someone explain this?

Regards,
Heiner

kracker (the)

Friday 20 May 2005 1:19:07 am

Heiner,

You would only notice a difference if the item you enabled show children on had child items.

For example a folder with a several child articles inside. If you had show children enabled, your user templates (at least the default templates) would display a list of the child items when viewing the parent folder.

//kracker

nothing left to quip ...

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Heiner Wurbs

Friday 20 May 2005 1:45:44 am

Thanks Kracker for your fast reply.

But, I have the main folder in a plain installation, and there I have one "sub"-folder. in the main folder I disabled the show children of the main folder, but I'm still seeing the child folder.

The plain system displays everything: folders and articles.

Doese this feature really works??

kracker (the)

Friday 20 May 2005 1:54:08 am

To be sure, the feature works quite well, but you don't have to take my word for it, it's only been v3.0 -> v 3.6.

It is your installation that is suspect I'm afraid.

Be sure to clear all of your cache?

//kracker

<i>Them (Dose-One, Jel) - Another Part of the Clown's Brain</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Heiner Wurbs

Friday 20 May 2005 3:21:07 am

well, okey, maybe its my windows installation. the cache is fine, the version is the newest available 3.5.2 and even, thats by the way really great, the hide and reveal works: but not the show children ...

Regards,
Heiner

Xavier Dutoit

Friday 20 May 2005 4:54:51 am

Hi,

The show children feature isn't something "hardcoded" into ez, that's just a convention.

The plain template doesn't take into account that flag, as the base does. have a look at design/base/override/templates/full/folder.tpl (the one that hide children). Copy it to your plain layout if you want this behavior.

http://www.sydesy.com

kracker (the)

Friday 20 May 2005 5:27:21 am

Ahh, I was wondering about that.

Cool, now I know!

And knowledge is power :)

//kracker

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Heiner Wurbs

Friday 20 May 2005 5:55:18 am

right, I got it now too:

design/base/override/templates/full/folder.tpl

{section show=$node.object.data_map.show_children.content}
<p>Show Children = yes</p>
{section-else}
<p>Show Children = no</p>
{/section}

Ok, its not hardcoded, and its good to know, because it looks like a system behaviour.

Thanks for your help!
Nice day,
Heiner

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 19 2025 12:39:24
Script start
Timing: Jan 19 2025 12:39:24
Module start 'layout'
Timing: Jan 19 2025 12:39:24
Module start 'content'
Timing: Jan 19 2025 12:39:25
Module end 'content'
Timing: Jan 19 2025 12:39:25
Script end

Main resources:

Total runtime1.0925 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 589.1484152.6250
Module start 'layout' 0.00490.0038 741.773439.4453
Module start 'content' 0.00871.0824 781.2188634.9141
Module end 'content' 1.09110.0013 1,416.132816.1641
Script end 1.0924  1,432.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.3290160.0002
Check MTime0.00180.1684160.0001
Mysql Total
Database connection0.00070.067610.0007
Mysqli_queries1.020993.4496740.0138
Looping result0.00080.0704720.0000
Template Total1.059697.020.5298
Template load0.00170.158520.0009
Template processing1.057996.835220.5289
Template load and register function0.00020.020510.0002
states
state_id_array0.00080.069710.0008
state_identifier_array0.00100.089320.0005
Override
Cache load0.00150.1411500.0000
Sytem overhead
Fetch class attribute can translate value0.00070.063530.0002
Fetch class attribute name0.00100.0906100.0001
XML
Image XML parsing0.00110.102330.0004
class_abstraction
Instantiating content class attribute0.00000.0026120.0000
General
dbfile0.00090.0869240.0000
String conversion0.00000.000940.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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs