Appending menu elements to admin interface

Author Message

Eirik Alfstad Johansen

Sunday 19 December 2004 7:59:26 am

Hi,

I've successfully managed to append a new menu item to the admin interface using the new INI settings (as of 3.5) in a menu.ini.append.php in my extension. However, I don't understand how to specify a "sub menu" (referred to as a navigation part in the ezp template code).

Judging from the template code of the pagelayout.tpl for the admin siteaccess, it seems like the different sub menues are hard coded, but that doesn't make any sense considering the main menu items are dynamic.

Could perhaps someone from the ez crew shed some light on this? Thanks in advance !

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Balazs Halasy

Sunday 19 December 2004 3:32:32 pm

Hi,

You're right, they're somewhat hardcoded. :-) The reason for this is that eZp didn't really have a menu system before. The navigation part solution is also kind of a hack. Right now it is a bit messy, but it works. We'll probably improve this part of the system sometime in the future; maybe during the 3.7 cycle. What kind of extra menu do you wish to create? Just some shortcuts to existing functionality or do you wish to implement your very own submenu for a custom/home-made module?

Allman

Eirik Alfstad Johansen

Monday 20 December 2004 5:53:47 am

Hi Allman,

I need to implement my own submenu for a custom module. If this isn't possible without modifying the template code of the admin pagelayout, then what's the point of having INI settings for the dynamic inclusion of top menu items in the first place?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Saturday 08 January 2005 5:27:47 am

Bump.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 18 2025 10:16:11
Script start
Timing: Jan 18 2025 10:16:11
Module start 'layout'
Timing: Jan 18 2025 10:16:11
Module start 'content'
Timing: Jan 18 2025 10:16:12
Module end 'content'
Timing: Jan 18 2025 10:16:12
Script end

Main resources:

Total runtime0.8156 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.0469152.6406
Module start 'layout' 0.00680.0033 740.687539.4766
Module start 'content' 0.01010.8042 780.1641551.8203
Module end 'content' 0.81430.0013 1,331.984412.1250
Script end 0.8156  1,344.1094 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4353160.0002
Check MTime0.00140.1778160.0001
Mysql Total
Database connection0.00090.113410.0009
Mysqli_queries0.756292.7174600.0126
Looping result0.00060.0714580.0000
Template Total0.778695.520.3893
Template load0.00220.270720.0011
Template processing0.776495.193020.3882
Template load and register function0.00010.016210.0001
states
state_id_array0.00160.199710.0016
state_identifier_array0.00080.103320.0004
Override
Cache load0.00180.2266200.0001
Sytem overhead
Fetch class attribute can translate value0.00120.148520.0006
Fetch class attribute name0.00230.280260.0004
XML
Image XML parsing0.00270.333420.0014
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00380.4679220.0002
String conversion0.00000.001040.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 14
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs