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

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 00:25:29
Script start
Timing: Jan 19 2025 00:25:29
Module start 'layout'
Timing: Jan 19 2025 00:25:29
Module start 'content'
Timing: Jan 19 2025 00:25:30
Module end 'content'
Timing: Jan 19 2025 00:25:30
Script end

Main resources:

Total runtime1.2410 sec
Peak memory usage4,096.0000 KB
Database Queries77

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 589.1719152.6406
Module start 'layout' 0.00760.0059 741.812539.4766
Module start 'content' 0.01341.2263 781.2891754.2734
Module end 'content' 1.23970.0013 1,535.562516.1250
Script end 1.2410  1,551.6875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2655160.0002
Check MTime0.00130.1026160.0001
Mysql Total
Database connection0.00080.063510.0008
Mysqli_queries1.162193.6426770.0151
Looping result0.00120.0988750.0000
Template Total1.169694.220.5848
Template load0.00240.190920.0012
Template processing1.167294.054120.5836
Template load and register function0.00030.024610.0003
states
state_id_array0.00320.261610.0032
state_identifier_array0.00460.367720.0023
Override
Cache load0.00200.1633300.0001
Sytem overhead
Fetch class attribute can translate value0.00120.096660.0002
Fetch class attribute name0.00210.1687120.0002
XML
Image XML parsing0.00320.258160.0005
class_abstraction
Instantiating content class attribute0.00000.0021120.0000
General
dbfile0.00180.1469440.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs