Saturday 25 November 2006 2:27:43 am
Hi, I'm working now since 3 weeks with ez, after much reading I would suggest this way:
Let's say you have following configuration:
siteaccess:<i>plain_site</i> design: <i>plain_site</i> <b>In your extension:</b>
1. Choose a new design name eg: your_extension_design 2. Create extension/your_extension/settings/design.ini.append.php
<?php /* #?ini charset="utf-8"?
[ExtensionSettings]
DesignExtensions[]=your_extension
*/ ?>
3. Create extension/your_extension/design/your_extension_design/templates/your_new_pagelayout.tpl as your override pagelayout.
<b>in the siteaccess setting</b>: like Xavier said it's unlikely that one want your extension to replace his pagelayout by extension installation, so for the override to work let users change their config as follow: 1. In settings/siteaccess/your_siteacces/site.ini.append.php modify/add the design settings as follow:
[DesignSettings]
SiteDesign=plain_site
AdditionalSiteDesignList[]=your_extension_design
AdditionalSiteDesignList[]=base
more on AdditionalSiteDesignList here: http://ez.no/doc/ez_publish/technical_manual/3_8/reference/configuration_files/site_ini/designsettings/additionalsitedesignlist 2. In settings/siteaccess/your_siteacces/override.ini.append.php modify/add the override as follow:
[your_extension_pagelayout]
Source=pagelayout.tpl
MatchFile=your_new_pagelayout.tpl
Subdir=templates
3. Make sure your extension is active in settings/siteaccess/your_siteacces/site.ini.append.php:
[ExtensionSettings]
ActiveAccessExtensions[]=your_extension
Those settings work for me and I think it's the right way to go, but as I said I'm a new ez user. Hope this helps. Marc
|