ezwebin menu

Author Message

Yaseen Carim Bacor

Thursday 05 August 2010 3:33:02 am

Hi,

I am trying to change color in the ezwebin top menu.

I am try to assign a color to each <li> of the ezwebin top menu.

Can anyone help?

Thanks in advanced

Robin Muilwijk

Thursday 05 August 2010 3:43:39 am

Hi Yaseen,

Have a look at the following articles:

http://share.ez.no/articles/ez-publish/how-to-configure-an-ez-publish-site
http://share.ez.no/articles/ez-publish/how-to-skin-an-ez-publish-now-site

These articles should help you in changing the menu style.

Regards Robin

Board member, eZ Publish Community Project Board - Member of the share.ez.no team - Key values: Openness and Innovation.

LinkedIn: http://nl.linkedin.com/in/robinmuilwijk // Twitter: http://twitter.com/i_robin // Skype: robin.muilwijk

Yaseen Carim Bacor

Thursday 05 August 2010 4:19:00 am

Hi Robin,

Thank you very much for the reply.

I have already check the 2 links provided, they are very interesting.

But i have not yet been able to solve the problem.

I am trying to assign a color to each node of the ezwebin menu.

Let take the example of the share.ez.no site.

The Forums can be assign to a red color, Articles to a blue color, Tutorials to a green color and so on etc.

The hover will remain the same.

Regards,

Yaseen

Thiago Campos Viana

Thursday 05 August 2010 6:31:11 am

Every li on top menu has an unique id that you can use to do it, just use firebug to find the li id you want to change and make some css stuff.

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Yaseen Carim Bacor

Thursday 05 August 2010 7:21:25 am

Hi Thiago Campos Viana,

Thank you very much for the reply.

I have already try the proposed solution.

But the problem is that <li> are automatically generated, so any css you assign to one <li>, would be automatically replicated for all the other <li>

Here is a small piece of code used by ezpublish menu

{if eq( $item.class_identifier, 'link')}
<li id="node_id_{$item.node_id}"{if $item_class} class="{$item_class|implode(" ")}"{/if}><div><a {if eq( $ui_context, 'browse' )}href={concat("content/browse/", $item.node_id)|ezurl}{else}href={$item.data_map.location.content|ezurl}{if and( is_set( $item.data_map.open_in_new_window ), $item.data_map.open_in_new_window.data_int )} target="_blank"{/if}{/if}{if $pagedata.is_edit} onclick="return false;"{/if} title="{$item.data_map.location.data_text|wash}" class="menu-item-link" rel={$item.url_alias|ezurl}><span>{if $item.data_map.location.data_text}{$item.data_map.location.data_text|wash()}{else}{$item.name|wash()}{/if}</span></a></div></li>

The generated unique node id would be in an <li>

Up to now i have not been able to assign a css to one of these generated <li>.

Can you please help?

Regards,

Yaseen

Thiago Campos Viana

Thursday 05 August 2010 8:05:39 am

It's not related to ez publish, but css, something like:

div#topmenu ul#topmenu-firstlevel li#node_id_61

In your css should override default css, where 61 should be replaced by the node id you want.

But you should use css files to change css, not menu templates. You should really re-read http://share.ez.no/articles/ez-publish/how-to-skin-an-ez-publish-now-site

eZ Publish Certified Developer: http://auth.ez.no/certification/verify/376924

Twitter: http://twitter.com/tcv_br

Yaseen Carim Bacor

Thursday 05 August 2010 10:18:30 am

Hi Thiago,

Thank you very much.

Its exactly what i needs.

Regards,

Yaseen

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 10:54:03
Script start
Timing: Jan 18 2025 10:54:03
Module start 'layout'
Timing: Jan 18 2025 10:54:03
Module start 'content'
Timing: Jan 18 2025 10:54:03
Module end 'content'
Timing: Jan 18 2025 10:54:03
Script end

Main resources:

Total runtime0.0184 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.9063152.6094
Module start 'layout' 0.00710.0031 741.515639.4141
Module start 'content' 0.01020.0061 780.929797.3828
Module end 'content' 0.01630.0021 878.312538.3047
Script end 0.0184  916.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002614.3016140.0002
Check MTime0.00126.3544140.0001
Mysql Total
Database connection0.00126.311710.0012
Mysqli_queries0.003519.054230.0012
Looping result0.00000.098410.0000
Template Total0.00179.010.0017
Template load0.00084.541510.0008
Template processing0.00084.410710.0008
Override
Cache load0.00063.031510.0006
General
dbfile0.00147.487580.0002
String conversion0.00000.059640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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