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.

eZ debug

Timing: Jan 18 2025 18:19:15
Script start
Timing: Jan 18 2025 18:19:15
Module start 'layout'
Timing: Jan 18 2025 18:19:15
Module start 'content'
Timing: Jan 18 2025 18:19:15
Module end 'content'
Timing: Jan 18 2025 18:19:15
Script end

Main resources:

Total runtime0.0298 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0193 587.9141152.6250
Module start 'layout' 0.01940.0022 740.539139.4609
Module start 'content' 0.02150.0061 780.000093.4453
Module end 'content' 0.02770.0021 873.445334.3047
Script end 0.0297  907.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00258.3029140.0002
Check MTime0.00113.6777140.0001
Mysql Total
Database connection0.00196.480110.0019
Mysqli_queries0.00248.099530.0008
Looping result0.00000.036810.0000
Template Total0.00155.110.0015
Template load0.00082.717410.0008
Template processing0.00072.368310.0007
Override
Cache load0.00051.774010.0005
General
dbfile0.00093.022680.0001
String conversion0.00000.033640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs