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

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 19 2025 04:23:26
Script start
Timing: Jan 19 2025 04:23:26
Module start 'layout'
Timing: Jan 19 2025 04:23:26
Module start 'content'
Timing: Jan 19 2025 04:23:26
Module end 'content'
Timing: Jan 19 2025 04:23:26
Script end

Main resources:

Total runtime0.0147 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 589.2500152.6250
Module start 'layout' 0.00550.0030 741.875039.4453
Module start 'content' 0.00850.0046 781.320389.3359
Module end 'content' 0.01310.0016 870.656334.3047
Script end 0.0147  904.9609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002516.6861140.0002
Check MTime0.00117.4245140.0001
Mysql Total
Database connection0.00085.762410.0008
Mysqli_queries0.002819.261930.0009
Looping result0.00000.081010.0000
Template Total0.00138.810.0013
Template load0.00074.756410.0007
Template processing0.00063.994910.0006
Override
Cache load0.00053.397210.0005
General
dbfile0.00031.942480.0000
String conversion0.00000.059940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs