set a policy to hide a node from anonymouse useres is also hidden from admin

Author Message

Romeo Antony

Friday 23 July 2010 7:29:38 am

I have set a user policy in roles for anonymous users to do not see a node(hide ) like this

module: content

function hide

subtree (archive).

Why this user policy also hide node( archive) from administer also .

Y it is not working. Y this is node not visible to administator. can anyone please help me. Romeo

     

Peter Keung

Friday 23 July 2010 7:56:38 am

That policy only controls whether a user can hide or unhide a node.

The ShowHiddenNodes setting in site.ini controls whether any user can see a hidden node for the entire siteaccess (provided that they also have the appropriate content/read permissions):

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/configuration_files/site_ini/siteaccesssettings/showhiddennodes

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Romeo Antony

Friday 23 July 2010 8:05:23 am

Hi peter, thanks you for your reply. I have read through the topic you given.

I am a new guy to ez. please correct me if I am wrong.I will explain my idea .

I want to hide a node from anonymouse user at the same time it will be visible to an administator or an editor.

For that what I did is all the users can read(by seeting policies) this node (say this node is archive).

But i have set an other policy only for anonymous users to hide this node(archive).

So that this node will not be visible to anonymouse users. I understand hide and unhide property set for entire site access. But can it be in users prospective like what I said. Can u give me any suggestion. I am stuck at this point . Romeo

Peter Keung

Friday 23 July 2010 8:54:19 am

Hide/unhide are typically not applied on a per-user or per-user-group basis. Sounds like sections are more suitable, not hide/unhide. These articles should provide the necessary background:

http://share.ez.no/articles/ez-publish/section-segmentation-and-user-permissions-part-1-of-2

http://share.ez.no/articles/ez-publish/section-segmentation-and-user-permissions-part-2-of-2

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Romeo Antony

Friday 23 July 2010 9:15:49 am

Thanks a lot Peter.I will try it. Now I am reading through the article that you wrote. http://share.ez.no/articles/ez-publish/node-visibility-hiding-and-revealing-content/%28page%29/4

Romeo Antony

Friday 23 July 2010 5:08:51 pm

Hi Peter, I have read through your artciles about node visibilty,user permission part1 and part2 from ez site.

But now I am stuck to set this user policy. Because I can't find a way to achieve thisthe following .Please help me Peter.

I have a folder called (2010) in topmenu. In this 2010 folder I have put 12 folders(these 12 folders are months )

Also I have 3 frontpage top menus.

site works like this. I am putting articles in folder 2010/month_folders.(suppose this month I will put articles in2010/july)

Then I am adding(referring) articles from this 2010/month_folders to 3frontpages (topmenus).

so all contents only will be in 2010/months folders.

I have put all 3 frontpage topmenus in standard section and 2010 folder in a new section called archive.

I do not want to show the 2010 node(archive section) to anonymouse users , but also need to search on the contents present in the 2010 node(archive section). This 2010 folder(archive section) should be visible to administator also.

I am completly loss at this point where I should grant read access to standard section and archival section for anonymous users for searching. Then how can I completly hide this 2010 folder(archival section) from anonymouse users and visible to administator.

Anyidea will be really helpfull.

I hope you may be able to help me with the information provided Peter.

Romeo.

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 05:12:48
Script start
Timing: Jan 18 2025 05:12:48
Module start 'layout'
Timing: Jan 18 2025 05:12:48
Module start 'content'
Warning: PHP: E_DEPRECATED Jan 18 2025 05:12:49
trim(): Passing null to parameter #1 ($string) of type string is deprecated in /home/ze/public_html/share.se7enx.com/var/community/cache/template/compiled/table-02cf899a6d707917c58210ed54ffe2ff.php on line 147
Timing: Jan 18 2025 05:12:49
Module end 'content'
Timing: Jan 18 2025 05:12:49
Script end

Main resources:

Total runtime1.2330 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.5234152.6875
Module start 'layout' 0.00530.0035 742.210939.5234
Module start 'content' 0.00891.2226 781.7344587.2031
Module end 'content' 1.23150.0015 1,368.937516.2734
Script end 1.2330  1,385.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2623160.0002
Check MTime0.00130.1077160.0001
Mysql Total
Database connection0.00070.056910.0007
Mysqli_queries1.149493.2175660.0174
Looping result0.00060.0515640.0000
Template Total1.196497.020.5982
Template load0.00270.216220.0013
Template processing1.193796.808020.5968
Template load and register function0.00010.008810.0001
states
state_id_array0.00160.129910.0016
state_identifier_array0.00130.103820.0006
Override
Cache load0.00200.1647520.0000
Sytem overhead
Fetch class attribute can translate value0.00080.068420.0004
Fetch class attribute name0.00110.086780.0001
XML
Image XML parsing0.00120.097020.0006
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00190.1524230.0001
String conversion0.00000.000940.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/sub.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/sub.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/td.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/td.tplEdit templateOverride template
1content/datatype/view/ezxmltags/tr.tpl<No override>extension/community/design/community/templates/content/datatype/view/ezxmltags/tr.tplEdit templateOverride template
1content/datatype/view/ezxmltags/table.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/table.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 9

Time used to render debug report: 0.0001 secs