Paginate the dynamic Content Structure Menu

Author Message

Erik Weinmaster

Tuesday 12 October 2010 6:54:55 am

One thing I always notice about the Content Structure is the fact that its never separated into more than one page. I have my own side project with ez publish 4.3 (so no, I haven't done the upgrade yet), but I notice that after roughly 175 entries in the content structure menu, it begins cutting them off. I see that the sub items for every node has the limiting factor of 10, 25, and 50. Why not do the same thing for the left hand menu? Of course you probably couldn't do the same (offset)/some_number module request, but what about storing this data in the session and thus the user has it for their duration? Or perhaps including this feature, but by default its disabled?

Heath

Tuesday 12 October 2010 4:26:04 pm

Hello Erik,

I have to say I disagree with this idea. It strikes as a bad idea since the content structure menu is displaying a tree of content data not a list.

I think it would be better for you (on your site) to limit the number of content objects displayed in the menu (by class identifier for example, see: settings/contentstructuremenu.ini ) which parent is the root node.

Cheers,

Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

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 04:09:16
Script start
Timing: Jan 18 2025 04:09:16
Module start 'layout'
Timing: Jan 18 2025 04:09:16
Module start 'content'
Timing: Jan 18 2025 04:09:17
Module end 'content'
Timing: Jan 18 2025 04:09:17
Script end

Main resources:

Total runtime0.8237 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.4766152.6406
Module start 'layout' 0.00600.0033 742.117239.4844
Module start 'content' 0.00930.8132 781.6016520.9922
Module end 'content' 0.82250.0012 1,302.59388.1250
Script end 0.8237  1,310.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4418160.0002
Check MTime0.00140.1751160.0001
Mysql Total
Database connection0.00080.093510.0008
Mysqli_queries0.782294.9577540.0145
Looping result0.00060.0676520.0000
Template Total0.793596.320.3967
Template load0.00260.310120.0013
Template processing0.790996.018520.3954
Template load and register function0.00010.015810.0001
states
state_id_array0.00030.038610.0003
state_identifier_array0.00050.064620.0003
Override
Cache load0.00200.2488110.0002
Sytem overhead
Fetch class attribute can translate value0.00090.108720.0004
Fetch class attribute name0.00090.114130.0003
XML
Image XML parsing0.00090.105820.0004
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00080.0918170.0000
String conversion0.00000.001240.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 7
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs