Forums / General / Question about show children

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

eZ debug

Timing: Jan 19 2025 12:38:04
Script start
Timing: Jan 19 2025 12:38:04
Module start 'content'
Timing: Jan 19 2025 12:38:04
Module end 'content'
Timing: Jan 19 2025 12:38:04
Script end

Main resources:

Total runtime0.1437 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0074 588.9453180.8438
Module start 'content' 0.00750.0064 769.7891101.9609
Module end 'content' 0.01380.1298 871.7500530.0234
Script end 0.1437  1,401.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.9137200.0002
Check MTime0.00140.9564200.0001
Mysql Total
Database connection0.00070.514310.0007
Mysqli_queries0.099669.32701410.0007
Looping result0.00120.84591390.0000
Template Total0.129590.110.1295
Template load0.00080.567710.0008
Template processing0.128789.539610.1287
Override
Cache load0.00050.371510.0005
Sytem overhead
Fetch class attribute can translate value0.00090.630410.0009
XML
Image XML parsing0.00020.171910.0002
General
dbfile0.00382.6184200.0002
String conversion0.00000.005530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0002 secs