eZ Community » Forums » Setup & design » why the extension doesn't work?
expandshrink

why the extension doesn't work?

why the extension doesn't work?

Tuesday 07 August 2007 10:17:36 am - 3 replies

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!
-_-

Modified on Tuesday 07 August 2007 10:22:02 am by Fiona Hisa

Tuesday 07 August 2007 5:29:39 pm

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?

Wednesday 08 August 2007 12:58:02 am

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

Wednesday 08 August 2007 3:21:27 am

Thanks for your help , I have fixed it .

Modified on Wednesday 08 August 2007 3:24:14 am by Fiona Hisa

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu