Forums / General / How to hide unused modules in admin interface

How to hide unused modules in admin interface

Author Message

Zak dma

Thursday 30 March 2006 2:04:07 am

I want to hide module Shop in admin interface.
How can I do it?

Łukasz Serwatka

Thursday 30 March 2006 2:36:19 am

You can hide Shop tab by modifying menu.ini.append.php for your admin siteaccess. However this will affect all users (setup tab will be hide for all) and will not disable shop functionality, you will need also set right permission. Other way is modify top_menu template for admin interface (not recommend due to future upgrades).

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bertrand Dunogier

Thursday 30 March 2006 2:38:57 am

A few more details : In my opinion the cleanest way to remove the tab is to add / edit the following menu.ini.append.php file to your siteaccess settings files :

<?php /* #?ini charset="iso-8859-1"?

[Topmenu_shop]
Shown[]
Shown[navigation]=false
Shown[default]=false
Shown[browse]=false

*/ ?>

But as Lukasz said, it will just hide the button, not remove the webshop features.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Zak dma

Thursday 30 March 2006 3:52:22 am

Ok, thanx for help. I only want hide Shop tab.

Geoff Bentley

Tuesday 08 January 2008 5:25:54 pm

Is is possible to hide unused modules from particular roles?

Heath

Tuesday 08 January 2008 5:52:34 pm

It very well might be ...

We did some work with Bjorn @ http://xrow.de where he provided a similar feature as your describe for a customer project.

I forget offhand just how it was implemented. It might have been as simple as adding custom logic to the admin menu template to control the display of menu items based on a user's role.

Cheers,
Heath

Brookins Consulting | http://brookinsconsulting.com/
Certified | http://auth.ez.no/certification/verify/380350
Solutions | http://projects.ez.no/users/community/brookins_consulting
eZpedia community documentation project | http://ezpedia.org

Piotrek Karaś

Tuesday 08 January 2008 11:22:53 pm

<i>Is is possible to hide unused modules from particular roles?</i>

eZ Publish uses what seems to me a closed approach to access control (a system of privileges). You can create roles that provide only limited access to modules or their functions, but I don't think you will be able to flexibly restrict a general policy in any other way than by replacing it with a set of detailed policies. Unfortunately, none of the above will affect the administration interface in any significant way.

On one hand, I would welcome such functionality. On the other, more and more roles can be practiced within the frontend interfaces, and that seems like a strong tendency...

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

eZ debug

Timing: Jan 19 2025 00:25:48
Script start
Timing: Jan 19 2025 00:25:48
Module start 'content'
Timing: Jan 19 2025 00:25:49
Module end 'content'
Timing: Jan 19 2025 00:25:49
Script end

Main resources:

Total runtime1.0460 sec
Peak memory usage4,096.0000 KB
Database Queries214

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 587.8438180.8203
Module start 'content' 0.00730.8305 768.6641759.3672
Module end 'content' 0.83780.2082 1,528.0313340.4375
Script end 1.0460  1,868.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4232210.0002
Check MTime0.00160.1520210.0001
Mysql Total
Database connection0.00130.124410.0013
Mysqli_queries0.941089.96182140.0044
Looping result0.00310.29442120.0000
Template Total1.012796.820.5063
Template load0.00280.263620.0014
Template processing1.009996.545020.5049
Template load and register function0.00020.020410.0002
states
state_id_array0.00120.112210.0012
state_identifier_array0.00080.075120.0004
Override
Cache load0.00240.2283300.0001
Sytem overhead
Fetch class attribute can translate value0.00130.127870.0002
Fetch class attribute name0.00150.1462120.0001
XML
Image XML parsing0.00290.281670.0004
class_abstraction
Instantiating content class attribute0.00000.0020120.0000
General
dbfile0.00500.4800550.0001
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0006 secs