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.

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 16:08:18
Script start
Timing: Jan 18 2025 16:08:18
Module start 'layout'
Timing: Jan 18 2025 16:08:18
Module start 'content'
Timing: Jan 18 2025 16:08:19
Module end 'content'
Timing: Jan 18 2025 16:08:19
Script end

Main resources:

Total runtime0.7143 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0034 589.1641152.6406
Module start 'layout' 0.00340.0023 741.804739.4609
Module start 'content' 0.00570.7069 781.2656594.6563
Module end 'content' 0.71260.0016 1,375.921912.1563
Script end 0.7142  1,388.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00270.3776160.0002
Check MTime0.00110.1552160.0001
Mysql Total
Database connection0.00050.063610.0005
Mysqli_queries0.668893.6344650.0103
Looping result0.00050.0751630.0000
Template Total0.691196.820.3455
Template load0.00200.275620.0010
Template processing0.689196.480220.3446
Template load and register function0.00010.017110.0001
states
state_id_array0.00150.211710.0015
state_identifier_array0.00100.137120.0005
Override
Cache load0.00160.2283300.0001
Sytem overhead
Fetch class attribute can translate value0.00130.175330.0004
Fetch class attribute name0.00090.119460.0001
XML
Image XML parsing0.00080.118730.0003
class_abstraction
Instantiating content class attribute0.00000.001870.0000
General
dbfile0.00060.0891170.0000
String conversion0.00000.000740.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs