Forums / Setup & design / hide current node path

hide current node path

Author Message

Stephane Persyn

Saturday 29 August 2009 6:38:45 pm

Hi, i did some research in both forums and articles, but didn't find any such topic.

I want to hide the path of current content viewed (located just under the horizontal menu) in ezwebin extension...

I heve created a "restricted section" from my own, with a policy even for anonymous users so that they can still read the content of a certain class within this restricted section.

so while they see any content from this class in the fonrt page is fine, if they click on it, they can see the default view of the class. Unfortunately, they can see the path to the content which is not suitable, as they might be tempted to click on the parent node link, which belongs to the restricted section, but is not an alllowed class in the role policies of the user.

BTW, seems only objects from the built- in folder class and its sub items have this small "path menu" appearing.

here's my node tree:
homepage (standard section, frontpage class) --> my folder container (restricted section, folder class) --> my allowed items (restricted section, my customized and allowed class).

Hope my explanations are crystal clear (but I doubt it :)).

Any help will be pretty much appreciated.

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

eZ debug

Timing: Jan 18 2025 16:23:55
Script start
Timing: Jan 18 2025 16:23:55
Module start 'content'
Timing: Jan 18 2025 16:23:55
Module end 'content'
Timing: Jan 18 2025 16:23:55
Script end

Main resources:

Total runtime0.2061 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 587.7031180.8438
Module start 'content' 0.00570.0050 768.546993.9766
Module end 'content' 0.01070.1953 862.5234523.0000
Script end 0.2060  1,385.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00341.6362200.0002
Check MTime0.00130.6383200.0001
Mysql Total
Database connection0.00070.317810.0007
Mysqli_queries0.162078.60151410.0011
Looping result0.00160.76371390.0000
Template Total0.194994.610.1949
Template load0.00080.366410.0008
Template processing0.194294.214010.1942
Override
Cache load0.00050.261010.0005
Sytem overhead
Fetch class attribute can translate value0.00080.409510.0008
XML
Image XML parsing0.00020.103310.0002
General
dbfile0.00170.8102200.0001
String conversion0.00000.002930.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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