template overrides browsing - better sollution?

Author Message

Marko Žmak

Wednesday 22 June 2005 7:36:21 am

I don't know if anyone else noticed but browsing templates for overrides in the admin interface is a little bit annoying. I have 42 pages of templates and have to search through them to find the template I need. Couldn't this be solved more practically?

My suggestions is to organize the template browsing in tree hierarchy, like a file system. First to show the highiest directories, then the next level and so on to the files.

For example, the highiest level would look like this:

visual
design
workflow
.
.
.
content
class

then by clicking the "content" directory the next level is shown:

datatype
collectedinfomail
collectedinfo

and so on.

This seems to me to be a better sollution for browsing the templates. Did anyone already suggested something like this and are there any plans to do it?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Linh Vu

Wednesday 22 June 2005 8:34:43 pm

Yeah I reckon that's annoying, but then the admin interface is already bandwidth-heavy and I don't really want it to be any bigger. I just vim the overrides.ini.append.php file. Much faster.

If I had more time, I would write less code.

Marko Žmak

Thursday 23 June 2005 2:09:57 pm

But as far as I know this propsed idea could only decrease the load from the admin interface.

I know that vim-ing the override file is much faster, but I also know that there are a lot of designers (and programmers too) that preffer creating overrides from the admin interface. And you cannot persuade all of them to use vim. Also for manually changing the override file you have to know all the template names and there are a lot of them...

So I would really like to know if someone already suggested this idea, and are there any plans to do it?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

kracker (the)

Thursday 23 June 2005 3:28:51 pm

I agree with, Linh.

I simply emacs override.ini.append.php

Here's why...
- Once you understand the template system and how it works ...
-- It's faster
-- It's cleaner
-- It's easier
-- It's more reliable
-- It's commentable

Did you know that if you add comments into the override.ini.append.php using the ini file comment character ('#') that they are stripped out if you use the admin setting or template override tools to edit these settings?

I don't like that stripping behavior, I like to comment my ini files with settings I may change often or informational comments. I think it's odd that it just strips them out :|

I find that I'm holding out for the new template override spec to be implemented :?

<i>http://ez.no/community/developer/specs/templates_overrides_overview_page
http://ez.no/community/developer/specs/improve_template_edit_page</i>

//kracker
<i>eminem : the way i am</i>

Member since: 2001.07.13 || http://ezpedia.se7enx.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 07:06:08
Script start
Timing: Jan 19 2025 07:06:08
Module start 'layout'
Timing: Jan 19 2025 07:06:08
Module start 'content'
Timing: Jan 19 2025 07:06:09
Module end 'content'
Timing: Jan 19 2025 07:06:09
Script end

Main resources:

Total runtime1.1958 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2891152.6406
Module start 'layout' 0.00590.0056 741.929739.4766
Module start 'content' 0.01161.1827 781.4063610.9141
Module end 'content' 1.19430.0014 1,392.320312.1250
Script end 1.1957  1,404.4453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2735160.0002
Check MTime0.00130.1054160.0001
Mysql Total
Database connection0.00140.116810.0014
Mysqli_queries1.122193.8373620.0181
Looping result0.00090.0718600.0000
Template Total1.150396.220.5751
Template load0.00200.165220.0010
Template processing1.148396.031020.5741
Template load and register function0.00010.010110.0001
states
state_id_array0.00140.114910.0014
state_identifier_array0.00180.152320.0009
Override
Cache load0.00170.1386470.0000
Sytem overhead
Fetch class attribute can translate value0.00070.058230.0002
Fetch class attribute name0.00140.113070.0002
XML
Image XML parsing0.00370.307930.0012
class_abstraction
Instantiating content class attribute0.00000.001380.0000
General
dbfile0.00300.2486320.0001
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
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
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs