You need to be logged in to get access to the forums. You can do so here

Building a left menu

  • Currently 4 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Wednesday 26 January 2011 06:42

by Henrik Gren  | 1 comment

Since the left menu is a fairly common feature of any site, in particular those corporate, I thought I could give an example of how this can be done. The level is clearly beginner, but as such it could save many hours of headache especially for somebody at terms with a first eZ project, thus flattening a little the famous steep learning curve of eZ Publish. :)

Implementing Province => City dependency

  • Currently 5 out of 5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tuesday 18 January 2011 08:39

by Henrik Gren  | 7 comments

Hi everyone!

Since I notice that there are quite some posts on this topic, I thought I should share with you how I implemented a form where one field depends on another. I will use the classic example where the user selects a province and then is limited in his choice of choosing a city only to those cities that actually exist in that province.

Tags

Archive

Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
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:08:45
Script start
Timing: Jan 18 2025 04:08:45
Module start 'layout'
Timing: Jan 18 2025 04:08:45
Module start 'content'
Timing: Jan 18 2025 04:08:45
Module end 'content'
Timing: Jan 18 2025 04:08:45
Script end

Main resources:

Total runtime0.1642 sec
Peak memory usage8,192.0000 KB
Database Queries89

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.7578152.5938
Module start 'layout' 0.00660.0027 741.351639.3984
Module start 'content' 0.00930.1531 780.7500521.3203
Module end 'content' 0.16240.0018 1,302.070316.2266
Script end 0.1641  1,318.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.0938160.0002
Check MTime0.00130.8198160.0001
Mysql Total
Database connection0.00050.275310.0005
Mysqli_queries0.090555.0981890.0010
Looping result0.00080.4939830.0000
Template Total0.019211.730.0064
Template load0.00231.425930.0008
Template processing0.018711.361230.0062
Template load and register function0.00010.056110.0001
states
state_id_array0.00352.147730.0012
state_identifier_array0.00372.236040.0009
Override
Cache load0.00171.0459120.0001
Sytem overhead
Fetch class attribute name0.00171.039750.0003
Fetch class attribute can translate value0.00080.472110.0008
class_abstraction
Instantiating content class attribute0.00000.006050.0000
XML
Image XML parsing0.00050.300210.0005
General
dbfile0.00090.5707200.0000
String conversion0.00000.006740.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/blog.tplextension/sevenx/design/simple/override/templates/full/blog.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezkeyword.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezkeyword.tplEdit templateOverride template
1tagcloud/tagcloud.tpl<No override>extension/community_design/design/suncana/templates/tagcloud/tagcloud.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs