Forums / Setup & design / Show just the content of a folder on a node_list toolbar?

Show just the content of a folder on a node_list toolbar?

Author Message

Miguel Quintana

Friday 08 December 2006 6:33:33 pm

Hello...
I am using version 3.8.6...
I want to show a the list of folders in a folder on the righ toolbar...

I setup this parameters
On the node_list toobar...

Item source: Folder Facilities (99)
Title: Facilities
Show in subtree: Folder Home (2)
Number of items: 5
Sort on attribute: name
Fetch whole tree?: No

This setup shows nothing.

If I setup the parameter Fetch whole tree to Yes?...
It show me Items on the subtree... but I just need the 3 folders on Folder Facilities (99)?...

thanks for any help....

Jon Staines

Monday 11 December 2006 5:06:13 am

If the 'Folder Facilities' folder only contains the folders you want to see in the list, then just set the 'Item Source' to 'Folder Facilities', don't have anything for 'Show in subtree' (leave it as Browse), and set 'Fetch whole tree?' to Yes. This will just fetch everything in the first layer beneath the 'Item Source' limited and ordered by the 'Number of items' and 'Sort on attribute' values.

If you are just wanting the folder names displayed, then you will have to edit the template.

Miguel Quintana

Monday 11 December 2006 9:55:53 pm

Thanks for your reply Jon, That is what I expected...
But it shows nothing... if I turned on "Fetch whole tree?" show items two levels down... sorts and work as expected...
I am not using "overides templates" yet for this project... I am finishing up organizing contet structure...
when I hit this problem...

Jon Staines

Tuesday 12 December 2006 1:21:17 am

Two levels down? From the Folder Facilities? You will need 'Show whole tree' set to Yes. Can you give an example of what there is in the folders, and what you see. eg:

-root
  -Folder Facilities
    -folder child 1
      -article 1         <----Seeing this in toolbar
    -folder child 2
    -folder child 3
  -another folder

Miguel Quintana

Tuesday 12 December 2006 7:43:54 am

Thanks for reply.... Ok...
From you presentation...

-root
-Folder Facilities
-folder child 1
-article 1 <----Seeing this in toolbar
-folder child 2
-folder child 3
-another folder

1. WHEN FECTH TREE IS OFF
When the configuration of the toolbar component is:

Item source: Folder Facilities (99)
Title: Facilities
Show in subtree: Browse
Number of items: 5
Sort on attribute: published
Fetch whole tree?: No

The toolbar does not show any item... empty...
AT this toolbar
I would like to show in this case "folder child 1", "folder child 2" and "folder child 3"..

2. WHEN FETCH TREE IS ON
When the configuration of the toolbar component is:

Item source: Folder Facilities (99)
Title: Facilities
Show in subtree: Browse
Number of items: 5
Sort on attribute: published
Fetch whole tree?: Yes

The toolbar shows JUST "article 1"... still no folders...

Jon Staines

Tuesday 12 December 2006 8:18:50 am

OK, my mistake, you will need to make a template override. You need to override:

/toolbar/full/node_list.tpl

In the middle of this template you will see 2 fetch content lines. Change the

class_filter_type, exclude,

to

class_filter_type, include,

so that the node list only shows folders instead of showing everything except folders. Leave your toolbar settings as:

Item source: Folder Facilities (99)
Title: Facilities
Show in subtree: Browse
Number of items: 5
Sort on attribute: published
Fetch whole tree?: No

The 'Fetch whole tree' set to No will limit the fetch to only the level directly beneath Folder Facilities.

This will affect any toolbar node lists on the site, so if you want it to only happen on a certain node list you are going to have to change the default override.

Miguel Quintana

Tuesday 12 December 2006 9:04:27 am

Hello again.... Thanks for the help...
Overriding

</toolbar/full/node_list.tpl>

worked...

I will work a little bit more minutes on the override... because I do not want all node_lists to behave like this... just
some...

eZ debug

Timing: Jan 18 2025 14:55:53
Script start
Timing: Jan 18 2025 14:55:53
Module start 'content'
Timing: Jan 18 2025 14:55:53
Module end 'content'
Timing: Jan 18 2025 14:55:53
Script end

Main resources:

Total runtime0.1441 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.3984180.7969
Module start 'content' 0.00630.0063 770.1953102.1016
Module end 'content' 0.01260.1314 872.2969531.4219
Script end 0.1440  1,403.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00332.3222200.0002
Check MTime0.00120.8649200.0001
Mysql Total
Database connection0.00171.197810.0017
Mysqli_queries0.095466.21321410.0007
Looping result0.00130.88091390.0000
Template Total0.131191.010.1311
Template load0.00080.529510.0008
Template processing0.130390.456310.1303
Override
Cache load0.00050.339410.0005
Sytem overhead
Fetch class attribute can translate value0.00050.367210.0005
XML
Image XML parsing0.00020.165310.0002
General
dbfile0.00725.0182200.0004
String conversion0.00000.003530.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.0001 secs