Forums / General / Showing folders in admin interface only

Showing folders in admin interface only

Author Message

Trond Åge Kvalø

Tuesday 09 March 2004 11:30:02 am

Hi folks!

I want to have a folder that should only be shown when you're in the admin interface.

One solution could be to filter the "secret" folder's parent_node in normal view using an attribute filter that is not equal to the folder's name.

But are there other, more elegant ways of doing this?

And can I add a left menu item in the admin interface? E.g. under the Frontpage menu item? And if so, can anyone give me an outline on how to do it?

best regards
trondåge

trondåge

Alex Jones

Tuesday 09 March 2004 12:47:03 pm

trondåge, for your first question, I would recommend that you create a new section and assign it to the secret folder(s). Then view the permissions for <i>Anonymous</i> users, which is under <i>Users > Roles</i> to make sure they do not have any rights to read or change that section. You may need to change the permissions under the <i>Section</i> box to highlight only what you want them to see, making sure that <i>Any</i> is no longer selected. Sections are ideal for hiding content from a group(s) of users.

Concerning your second question, yes you can add an item in the left menu in the admin section. Take a look at the templates under <i>design/admin/templates</i>. You may need to look around a bit to find the right file, though it would be faster to turn on debug under <i>[TemplateSettings]</i> in your <i>site.ini.append</i> which will show you every template used to display the page. Then just insert the code or link you want displayed there as you would with any other template.

Hope this helps,

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Borgermans

Tuesday 09 March 2004 1:35:40 pm

For suppressing folders in the normal view, you may also copy the folder class to a new class and create folders with the copied class. You can easily change the anonymous user role to only display the folders you want. This may be better in case you mix normal filders with "folders to be hidden". If its only a certain tree(s) you should suppress, sections are the way to go.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans