why the extension doesn't work?

Author Message

Fiona Hisa

Tuesday 07 August 2007 1:17:36 am

Hi,
I have writen a menu extension called ex_menu
and added

[ExtensionSettings]
DesignExtensions[]=ex_menu

in the design.ini.append.php

[ExtensionSettings]
ActiveExtensions[]=ex_menu

in the site.ini.append.php

and

{include uri='design:ex_menu/menu.tpl'}

in the pagelayout.tpl

but it doesn't work , I don't know why.
if somebody can tell me?
thanks in advance!
-_-

Greg McAvoy-Jensen

Tuesday 07 August 2007 8:29:39 am

Just a couple thoughts:

What directories are the ini files in?

Did you clear the cache?

Anything in debug? Does templates debug show that templates is being requested?

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Bruce Morrison

Tuesday 07 August 2007 3:58:02 pm

Hi

I suspect you have the menu.tpl file in the wrong directory. For things to work as you have described below you'll need to have the following layout

extension/ex_menu/settings/design.ini.append.php
extension/ex_menu/design/standard/templates/ex_menu/menu.tpl

The site.ini.append.php should be the one in the relevant siteaccess and not in the extension.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

Fiona Hisa

Tuesday 07 August 2007 6:21:27 pm

Thanks for your help , I have fixed it .

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.