Moving your basic templates and CSS into an extension will ease the workflow in setting up new sites with Ez Publish.
First off create a folder in the extension folder (/ezpublish/extension) of your Ez distribution. To make it work as an design extension we just need a few files:
/gersh<br> /design<br> /gersh<br> /images<br> /override<br> /stylesheets<br> /templates<br> ezinfo.php<br> /settings<br> design.ini.append.php
File listing “ezinfo.php”:
<?php<br>class gershInfo<br>{<br> static function info()<br> {<br> return array( 'Name' => "Gersh Design Extenison",<br> 'Version' => "1.0.0",<br> 'Copyright' => "Copyright (C) 1999-2007 Gersh.no",<br> 'License' => "GNU General Public License v2.0"<br> );<br> }<br>}<br>?>File listing “design.ini.append.php”:
<?php /* #?ini charset="utf-8"?<br>[ExtensionSettings]<br>DesignExtensions[]=gersh<br>*/ ?>
Make sure you activate your new extension in “ezpublish/settings/override/site.ini.append.php“:
[ExtensionSettings]<br>ActiveExtensions[]<br>ActiveExtensions[]=gersh
And add it as an additional site design list in “ezpublish/settings/siteaccess/<site-name>/site.ini.append.php“
[DesignSettings]<br>SiteDesign=ezwebin_site<br>AdditionalSiteDesignList[]<br>AdditionalSiteDesignList[]=gersh<br>AdditionalSiteDesignList[]=base