Forums / Setup & design / Newbee : Hide Node for specific users

Newbee : Hide Node for specific users

Author Message

Yann Decam

Saturday 24 February 2007 3:31:14 pm

Hello everydoby,

it's now 2 hours im searching a way to hide the product tab in the menu for anonymous users role from the font end and to display it for partner role.
If someone can give me an idea how to do ?.
Thanks by advance for your help.
Pat.

André R.

Sunday 25 February 2007 9:20:18 am

Only letting Partners and up have read access to it.

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

Yann Decam

Sunday 25 February 2007 3:01:41 pm

In fact Andre, i don't really undestand your point.
I've define a section with role assigned to this section to anonymous users. Then i change the properties of the content node to this section. But no results.
I'm using EZ3.9. Perhaps, i was not enough clear. By default, the front end comes with products node for shopping. Anonymous users can used it and i want to give access to shopping by the products menu to registered members.
I'm doing something wrong ?
Pat.

André R.

Sunday 25 February 2007 4:46:15 pm

The last post where more unclear on what you want to do then the first one.
So i'll assume that you want to only let Partner users acces to the product page and content. ( this: http://now.ezpublish.no/eng/products )

There is already a section defined for letting partners have access to partner area, use that or copy the consept. That section is called Restricted.

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

Pat Pinto

Monday 26 February 2007 1:27:54 am

Now we understand eachother. Sorry for not having being clear.

The thing is when an anonymous user go to http://now.ezpublish.no/ he can click or nagivate through http://now.ezpublish.no/eng/products
What we should implement is for non regsitered members, they should not have access or see the http://now.ezpublish.no/eng/products
Only the content has to be shown for anonymous and the Product/shopping part disable until you are registered.

I think this is quite simple for expert to do that but not for us.
Thanks for the follow-up.
Pat.

eZ debug

Timing: Jan 18 2025 11:14:52
Script start
Timing: Jan 18 2025 11:14:52
Module start 'content'
Timing: Jan 18 2025 11:14:53
Module end 'content'
Timing: Jan 18 2025 11:14:53
Script end

Main resources:

Total runtime0.9066 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.4141180.8281
Module start 'content' 0.00620.7504 770.2422599.7500
Module end 'content' 0.75660.1499 1,369.9922337.3984
Script end 0.9066  1,707.3906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4491210.0002
Check MTime0.00150.1700210.0001
Mysql Total
Database connection0.00080.089210.0008
Mysqli_queries0.815689.96122020.0040
Looping result0.00220.24382000.0000
Template Total0.878696.920.4393
Template load0.00220.243720.0011
Template processing0.876396.657020.4382
Template load and register function0.00020.023910.0002
states
state_id_array0.00120.134710.0012
state_identifier_array0.00130.139620.0006
Override
Cache load0.00180.2020300.0001
Sytem overhead
Fetch class attribute can translate value0.00170.191240.0004
Fetch class attribute name0.00250.280560.0004
XML
Image XML parsing0.00120.134240.0003
class_abstraction
Instantiating content class attribute0.00000.002270.0000
General
dbfile0.00320.3520280.0001
String conversion0.00000.000730.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs