Wednesday 17 September 2008 10:13:57 am
Hi Paul, I am unaware of a short guide to design extensions at the moment, though it certainly is something I will consider writing in the near future if others are looking for similar information. In short you are looking to replicate the identical directory structure from a normal design in the /design folder. Your new extension, for instance "myext" with a design "mydesign". /extension/myext/design/mydesign Within this design you would have folders for images, javascript, override/templates, stylesheets and templates as per the ezwebin and similar extensions. The one other thing that is required is a settings folder: /extension/myext/settings/ with a design.ini.append.php file specifying:
<?php /* #?ini charset="utf-8"?
[ExtensionSettings]
DesignExtensions[]=myext
*/ ?>
Once you have activated your extension via the administration interface (Setup -> Extension) or via settings/override/site.ini.append.php, eZ Publish will check within your activated extensions and register the fact that <i>myext</i> contains a design. You can then specify that design name, <i>mydesign</i> within your siteaccess [DesignSettings] block. I hope that provides a quick overview as to how you can get up and running with your design inside an extension. If you run into any problems shoot back more questions :)
Regards, Andrew.
Andrew Duck, Executive Director, Quiqcorp Limited
eZ Certified Developer and Trainer.
Member of the Community Project Board
http://quiqcorp.com | http://twitter.com/andrewduck
|