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

eZ debug

Timing: Jan 31 2025 03:44:15
Script start
Timing: Jan 31 2025 03:44:15
Module start 'content'
Timing: Jan 31 2025 03:44:15
Module end 'content'
Timing: Jan 31 2025 03:44:15
Script end

Main resources:

Total runtime0.2302 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 587.9453370.2969
Module start 'content' 0.00750.0117 958.24221,001.5313
Module end 'content' 0.01930.2109 1,959.77343,890.0391
Script end 0.2302  5,849.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00421.8229200.0002
Check MTime0.00130.5635200.0001
Mysql Total
Database connection0.00090.383510.0009
Mysqli_queries0.141161.27561410.0010
Looping result0.00120.51501390.0000
Template Total0.210591.410.2105
Template load0.00070.304110.0007
Template processing0.209891.137210.2098
Override
Cache load0.00050.210210.0005
Sytem overhead
Fetch class attribute can translate value0.00170.727610.0017
XML
Image XML parsing0.00020.107310.0002
General
dbfile0.00672.8922200.0003
String conversion0.00000.002230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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