Add stylesheet to admin interface

Author Message

paul bolger

Tuesday 30 November 2010 2:13:46 pm

Could someone suggest the easiest, most upgrade-friendly, way to add an extra stylesheet to the admin interface? I'd prefer to do it within my design extension, and to have have a choice of whether it applies to the front and/or the back edit interfaces.

I'm looking into using :before to add user help without modifying the templates.

Paul Bolger

Peter Keung

Tuesday 30 November 2010 6:11:45 pm

In eZ Publish 4.3 and higher, you can add to the settings array [StylesheetSettings]BackendCSSFileList in design.ini.append.php.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

paul bolger

Wednesday 01 December 2010 1:24:32 pm

Thanks,

I ended up putting the stylesheet in

/extension/ezwebin_custom/design/admin2/stylesheets

As a matter of interest, where does the admin interface look for stylesheets?

For some reason I can't get the packer to switch off so having a bit of difficulty working out what's going on.

Paul B

Paul Bolger

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 02:48:19
Script start
Timing: Jan 18 2025 02:48:19
Module start 'layout'
Timing: Jan 18 2025 02:48:19
Module start 'content'
Timing: Jan 18 2025 02:48:20
Module end 'content'
Timing: Jan 18 2025 02:48:20
Script end

Main resources:

Total runtime1.0496 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 594.7266152.6250
Module start 'layout' 0.00690.0029 747.351639.4531
Module start 'content' 0.00981.0382 786.8047538.5234
Module end 'content' 1.04800.0015 1,325.328112.1563
Script end 1.0495  1,337.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3157160.0002
Check MTime0.00150.1384160.0001
Mysql Total
Database connection0.00080.076610.0008
Mysqli_queries0.998095.0862570.0175
Looping result0.00060.0584550.0000
Template Total1.009696.220.5048
Template load0.00210.196020.0010
Template processing1.007595.990520.5037
Template load and register function0.00010.007610.0001
states
state_id_array0.00070.067610.0007
state_identifier_array0.00190.185020.0010
Override
Cache load0.00170.1615170.0001
Sytem overhead
Fetch class attribute can translate value0.00070.069620.0004
Fetch class attribute name0.00230.220050.0005
XML
Image XML parsing0.00090.086720.0005
class_abstraction
Instantiating content class attribute0.00000.001360.0000
General
dbfile0.00110.1039230.0000
String conversion0.00000.000740.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/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: 11
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs