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.