about menu

Author Message

Tatiana Vorob'eva

Tuesday 07 June 2005 11:47:30 am

I need to have images in menu. As thumbamails for each section. How can I add an image as a thumbanail of folder?

Mikhail Chekanov

Tuesday 07 June 2005 1:23:57 pm

The simplest way is to assign images with css selectors, generating appropriate selectors from the templates.
For example:
edit your_design/templates/menu/flat_top.tpl (if you havn't this one - just copy it from base/templates/menu/flat_top.tpl)
Add identifiers:

<li id="{$menu.node_id}" class=....

Add selector to css:

li#122 {background-image: ....}
li#123 {background-image: ....}

--
mike
#6595551

Tatiana Vorob'eva

Wednesday 08 June 2005 1:42:36 am

Thanks a lot!
:):)
Is there any way to associate image with li in menu? I mean, when admin adds folder to section, which would be displayed in menu, he(she) adds an icon in the same form perhaps....
Is there any way to rewrite template for creating folder to add field "icon image"?

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 20:51:55
Script start
Timing: Jan 18 2025 20:51:55
Module start 'layout'
Timing: Jan 18 2025 20:51:55
Module start 'content'
Timing: Jan 18 2025 20:51:56
Module end 'content'
Timing: Jan 18 2025 20:51:56
Script end

Main resources:

Total runtime0.8492 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.7891152.6094
Module start 'layout' 0.00570.0029 740.398439.3984
Module start 'content' 0.00860.8393 779.7969496.7188
Module end 'content' 0.84780.0013 1,276.51568.2031
Script end 0.8491  1,284.7188 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.4334160.0002
Check MTime0.00140.1625160.0001
Mysql Total
Database connection0.00070.081810.0007
Mysqli_queries0.805994.9034570.0141
Looping result0.00050.0626550.0000
Template Total0.817896.320.4089
Template load0.00260.306020.0013
Template processing0.815296.003820.4076
Template load and register function0.00030.030310.0003
states
state_id_array0.00170.198410.0017
state_identifier_array0.00080.099520.0004
Override
Cache load0.00220.2574170.0001
Sytem overhead
Fetch class attribute can translate value0.00110.129420.0005
Fetch class attribute name0.00170.201130.0006
XML
Image XML parsing0.00020.027320.0001
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00060.0726100.0001
String conversion0.00000.000740.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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs