hide current node path

hide current node path

Saturday 29 August 2009 6:38:45 pm - 1 reply

Author Message

André R.

Sunday 30 August 2009 5:24:42 am

There are a couple of ways to do that, the easiest would be to do it in CSS, since you have everything you need on the <div id="page"> tag, example on standard section:

<!-- Change between "sidemenu"/"nosidemenu" and "extrainfo"/"noextrainfo" to switch display of side columns on or off  -->
<div id="page" class="nosidemenu noextrainfo section_id_1 subtree_level_0_node_id_2">

So if your restricted section has id 5 you'll need something like:

div#page.section_id_5 div#path { display: none; }

For more: http://ez.no/developer/articles/how_to_skin_an_ez_publish_now_site

The alternative would be to override the path template and introduce your own logic there.
Or if your using webin 1.4 or higher you can do the same in the user class template as is done in the full node view template of the 'frontpage' content class, which is:

{set scope=global persistent_variable=hash('left_menu', false(),
                                           'extra_menu', false(),
                                           'show_path', false())}

(you probably only need 'show_path', but I post the whole thing in case you want full page width)
But that is a bit big subject on a sunday, so take a look here for how to work with templates:
http://ez.no/ezpublish/documentation/building_an_ez_publish_site/prerequisits

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.