Custom functionality in the admin interface

Author Message

Felix Laate

Monday 28 March 2005 11:02:56 pm

Hi all!

Suppose I create a class "mappoint". It has the attributes "name", "body", "x" and "y".

If I want to make some custom admin functionality (e.g. a popup with a map to help getting the right coordinates) for this class, how is this done? With an override?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Xavier Dutoit

Monday 28 March 2005 11:10:31 pm

Yes, you can override the edit of this class on your admin interface (have a look at the settings/siteaccess/admin/override.append.ini.php file, you have a few exemples).

Otherwise, if you think you're going to have to reuse this mappoint, you could create a new datatype "mappoint", that will store the x y and name+ have all the custom layouts you want. Not that complicated...

http://www.sydesy.com

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 08:52:42
Script start
Timing: Jan 19 2025 08:52:42
Module start 'layout'
Timing: Jan 19 2025 08:52:42
Module start 'content'
Timing: Jan 19 2025 08:52:43
Module end 'content'
Timing: Jan 19 2025 08:52:43
Script end

Main resources:

Total runtime0.7894 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 589.2891152.6406
Module start 'layout' 0.00600.0031 741.929739.4766
Module start 'content' 0.00910.7788 781.4063525.1797
Module end 'content' 0.78780.0015 1,306.58598.1250
Script end 0.7893  1,314.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4133160.0002
Check MTime0.00140.1725160.0001
Mysql Total
Database connection0.00070.085310.0007
Mysqli_queries0.747194.6499540.0138
Looping result0.00040.0570520.0000
Template Total0.762696.620.3813
Template load0.00200.247920.0010
Template processing0.760696.358520.3803
Template load and register function0.00010.013810.0001
states
state_id_array0.00070.082510.0007
state_identifier_array0.00120.158320.0006
Override
Cache load0.00160.2064120.0001
Sytem overhead
Fetch class attribute can translate value0.00060.075920.0003
Fetch class attribute name0.00090.118740.0002
XML
Image XML parsing0.00100.132820.0005
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00100.1280220.0000
String conversion0.00000.001140.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
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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: 8
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs