Forums / Setup & design / Variable menu on the index-page ?

Variable menu on the index-page ?

Author Message

Tom Smets

Monday 12 May 2003 2:16:29 am

Hi,

I started working with eZ3 for a few weeks now. I'm developing my first real site and encountered a menu related problem.

I'd like a menu on the left side, which can show all the members. These members should be viewed: 1. By Name | 2. By Category.
So I've got two hyperlinks on top op the menu-structure (by name | by category) and when a user selects a link, the left menu should change dynamicly.

Does anyone got an idea on how accomplishing this ?

Kind regards

Selmah Maxim

Monday 12 May 2003 3:23:31 am

Hi ..

You mean you have 2 menu, the top menu is the main, and the left menu is the childe menus, when user click on the top (main manus) the left menu should sort the childe menu of this main menu ?!

such what ez.no have ?

Tom Smets

Monday 12 May 2003 7:08:05 am

No, that's not exactly what I mean.
I've got one left menu, with two links on top of the menu.

This scheme of the left-menu may clear things out:

Name | Category
--------------------
child
child
child
....

When 'Category' is clicked, the child menu should change, and vice-versa with the 'Name' link.

These things are so easy to accomplish with javascript or native php, but with the eZ Template Language it isn't so easy anymore...

Selmah Maxim

Monday 12 May 2003 8:13:45 am

hmm ...

I think u need kind of with this way maybe will work :

1. make folder with 'Name' name
2. make folder with 'Category' name
3. try this code :

{section show=eq($node.node_id,'THE_NAME_FOLDER_ID')}
{$node.name}
{/section}
{section show=eq($node.node_id,'THE_Category_FOLDER_ID')}
{$node.object.class_name}
{/section}

am not sure if this will work, but i think also easy to do it with eztemplate language !

Selmah Maxim

Monday 12 May 2003 8:15:59 am

i forget something, the links :

<a href={"/content/view/full/NAME_FOLDER_ID/"|ezurl}>Name</a>
<a href={"/content/view/full/NAME_Category_ID/"|ezurl}>Name</a>

Tom Smets

Monday 12 May 2003 1:11:38 pm

Thanx,

the code you suggested worked fine.
The only glitch is that the content of that folder is displayed in the main area of my site.
But I'll get a solution by creating a full_node_#.tpl file for that issue.

again, many thanx

eZ debug

Timing: Jan 18 2025 04:30:20
Script start
Timing: Jan 18 2025 04:30:20
Module start 'content'
Timing: Jan 18 2025 04:30:21
Module end 'content'
Timing: Jan 18 2025 04:30:21
Script end

Main resources:

Total runtime1.6444 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0104 587.7266180.8359
Module start 'content' 0.01041.4581 768.5625512.2969
Module end 'content' 1.46850.1758 1,280.8594338.1250
Script end 1.6443  1,618.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.2988210.0002
Check MTime0.00180.1073210.0001
Mysql Total
Database connection0.00110.066010.0011
Mysqli_queries1.553994.49622030.0077
Looping result0.00220.13572010.0000
Template Total1.574995.820.7875
Template load0.00320.194520.0016
Template processing1.571795.583720.7859
Template load and register function0.00020.014510.0002
states
state_id_array0.00180.109910.0018
state_identifier_array0.00170.104820.0009
Override
Cache load0.00290.1762480.0001
Sytem overhead
Fetch class attribute can translate value0.00170.103130.0006
Fetch class attribute name0.00170.100960.0003
XML
Image XML parsing0.00050.032030.0002
class_abstraction
Instantiating content class attribute0.00000.000760.0000
General
dbfile0.00230.1420210.0001
String conversion0.00000.000430.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
6content/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
7content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs