Design extension

Author Message

David Santiso

Sunday 13 February 2011 4:59:54 am

Hi,

I've started to develop a design extension.

  • I've created "extension/myextension" directory.
  • I've created "extension/myextension/settings/design.ini.append.php" file, with this code:
<?php /*
[ExtensionSettings]
DesignExtensions[]=myextension
*/
?>
  • I've created "extension/myextension/desisng/example/templates/mytemplate.tpl" file. This template is empty at the moment. Imagine that there was already a override template with the same name. And this override template was being used.
  • I've activated the extension editing "settings/override/site.ini.append.php" file, with this code:
[ExtensionSettings]
ActiveExtensions[]=myextension

If it worked, the object that uses this template should be blank?

It continue using the template overwritten.

Have I done something wrong?

Thanks,

David

Carlos Revillo

Sunday 13 February 2011 6:55:06 am

Yes. i think it should be blank. maybe you can try just adding an 'a' to the template. it won't matter it is only an 'a' or is empty. it will show what it's in that template, if the template is requested.

David Santiso

Sunday 13 February 2011 7:16:19 am

It read the override template "design/ezflow/override/templates/mytemplate.tpl".

Franck Magnan

Sunday 13 February 2011 8:18:36 am

Hello David,

if you want eZ Publish take your extension template instead of ezflow template, you must place your extension after ezflow extension in the "active extensions" list (in override/site.ini.append.php) or edit extension.xml file to deal with dependencies between your extension and ezflow extension.

You may take a look at this thread to find more info

--
Developer at Open Wide

David Santiso

Sunday 13 February 2011 9:36:00 am

I've already put after ezflow:

<?php /* #?ini charset="utf-8"?
[ExtensionSettings]
ActiveExtensions[]
ActiveExtensions[]=ezjscore
ActiveExtensions[]=ezstarrating
ActiveExtensions[]=ezgmaplocation
ActiveExtensions[]=ezflow
ActiveExtensions[]=ezwt
ActiveExtensions[]=ezwebin
ActiveExtensions[]=ezie
ActiveExtensions[]=ezoe
ActiveExtensions[]=ezodf
ActiveExtensions[]=myextension
...
*/
?>

I've created these override templates regardless of any extension.

extension.xml?

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 01:58:56
Script start
Timing: Jan 18 2025 01:58:56
Module start 'layout'
Timing: Jan 18 2025 01:58:56
Module start 'content'
Timing: Jan 18 2025 01:58:57
Module end 'content'
Timing: Jan 18 2025 01:58:57
Script end

Main resources:

Total runtime0.8079 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 587.7969152.6094
Module start 'layout' 0.00520.0024 740.406339.4219
Module start 'content' 0.00760.7988 779.8281595.8203
Module end 'content' 0.80650.0015 1,375.648412.1875
Script end 0.8079  1,387.8359 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3958160.0002
Check MTime0.00130.1646160.0001
Mysql Total
Database connection0.00060.074710.0006
Mysqli_queries0.755393.4876660.0114
Looping result0.00050.0665640.0000
Template Total0.783697.020.3918
Template load0.00200.245720.0010
Template processing0.781696.740220.3908
Template load and register function0.00010.014110.0001
states
state_id_array0.00060.070210.0006
state_identifier_array0.00070.084020.0003
Override
Cache load0.00170.2098330.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068130.0002
Fetch class attribute name0.00090.114060.0002
XML
Image XML parsing0.00180.224930.0006
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00210.2629150.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/li.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/li.tplEdit templateOverride template
2content/datatype/view/ezxmltags/ul.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/ul.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.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: 9

Time used to render debug report: 0.0001 secs