eZ Community » Forums » Setup & design » ezwebin menu
expandshrink

ezwebin menu

ezwebin menu

Thursday 05 August 2010 12:33:02 pm - 6 replies

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

Modified on Thursday 05 August 2010 12:35:20 pm by Yaseen Carim Bacor

Thursday 05 August 2010 12:43:39 pm

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

Thursday 05 August 2010 1:19:00 pm

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

Thursday 05 August 2010 3:31:11 pm

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.

Thursday 05 August 2010 4:21:25 pm

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(" "blunk.gif Emoticon}"{/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

Modified on Thursday 05 August 2010 4:23:31 pm by Yaseen Carim Bacor

Thursday 05 August 2010 5:05:39 pm

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

Modified on Thursday 05 August 2010 5:08:34 pm by Thiago Campos Viana

Thursday 05 August 2010 7:18:30 pm

Hi Thiago,

Thank you very much.

Its exactly what i needs.

Regards,

Yaseen

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu