This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit

eZ Community » Forums » Developer » Grant access for anonymouse users on...

Grant access for anonymouse users on search module on an folder which is hidden from anonymouse users

Grant access for anonymouse users on search module on an folder which is hidden from anonymouse users

Friday 23 July 2010 10:12:04 am - 4 replies

Hi, I am the first time working with user roles and policies(new ).I have read through the documenation in ez.

I will explain what I am trying to do on user policies.

In webiste I have 5 topmenues , these top menus are created by class frontpage.

Also all the contents in these 5 tope menus are referred from a folder called archival .

This archival folder is hidden from the anonymouse users.

For that I have set a section for this archival folder and this section is not accessible by anonymous users. All the other topmunes are in the standard section so anonymous users can read the contents.

but, I want to grant access to anonymouse users to search on contents present in the archival folder . But it is not happening, since I have set anonymouse users can access only standard section.

Also for search module, function limitation is not available.Anyone have any idea please guide me. Romeo .

Friday 23 July 2010 12:07:42 pm

Hi Romeo,

If you use ezfind to search, use "limitation" parameters to override current user access


Have fun happy.gif Emoticon

Friday 23 July 2010 12:59:24 pm

Philippe, thank you for your reply. But can you please tell me can I do something with roles and policies in admin interface to search contents of a hidden node. Please give me a suggestion. ROmeo

Friday 23 July 2010 1:37:57 pm

In my search.tpl I have set it like

{let search=false()}
{section show=$use_template_search}
{set page_limit=10}
{set search=fetch(content,search,
{set search_result=$search['SearchResult']}
{set search_count=$search['SearchCount']}
{set stop_word_array=$search['StopWordArray']}
{set search_data=$search}

But it is not showing the hidden nodes after searching. Can anyone please help me.

Friday 23 July 2010 5:02:16 pm

Do not confuse node visibility with sections and their related permissions. If you set the "limitation" parameter to be an empty array, the result list should bypass permissions:

Also, note that by default the template search code won't be executed (the PHP view code would be executed) unless you remove the $use_template_search condition in site.ini:


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

36 542 Users on board!

Forums menu

Proudly Developed with from