Extension and siteaccess

Author Message

Frederic GUEHO

Saturday 29 September 2007 4:22:28 pm

I use my own extension to alter the plain_site design.

I'd like to change the templates rules in "override.ini.append.php" for a siteaccess.
So I created the following file :
/extension/[my_extension]/settings/siteaccess/[my_siteaccess]/override.ini.append.php

With the following rules :

[full_folder]
Source=node/view/full.tpl
MatchFile=[my_template].tpl
Subdir=templates
Match[class_identifier]=folder

It's not working !!!!

So I tried the same rules in :
/extension/[my_extension]/settings/override.ini.append.php
It's working but it alter all my siteaccess. And it's not what I want.

So I tried the same rules in :
/settings/siteaccess/[my_siteaccess]/override.ini.append.php
It's working but my templates rules are not in my extension any more. And it's not what I want.

I order to have my template rules in my own extension for a particular siteaccess, is there something I'm missing because it is just not working as expected ?

Thanks for your help.

Frederic GUEHO

Saturday 29 September 2007 5:59:38 pm

Problem solved.

I was using (and it was not working) :
[full_folder]
Source=node/view/line.tpl
MatchFile=billet.tpl
Subdir=templates
Match[class_identifier]=billet

Now I use (and it's working) :
[billet]
Source=node/view/line.tpl
MatchFile=billet.tpl
Subdir=templates
Match[class_identifier]=billet

I don't understand why. Buy anyway, everything's fine ! :)

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 15:18:32
Script start
Timing: Jan 18 2025 15:18:32
Module start 'layout'
Timing: Jan 18 2025 15:18:32
Module start 'content'
Timing: Jan 18 2025 15:18:33
Module end 'content'
Timing: Jan 18 2025 15:18:33
Script end

Main resources:

Total runtime1.0886 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0044 589.0469152.6250
Module start 'layout' 0.00440.0034 741.671939.4453
Module start 'content' 0.00781.0793 781.1172433.0859
Module end 'content' 1.08710.0014 1,214.20318.1641
Script end 1.0886  1,222.3672 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2923160.0002
Check MTime0.00140.1311160.0001
Mysql Total
Database connection0.00060.054010.0006
Mysqli_queries1.042395.7420520.0200
Looping result0.00040.0404500.0000
Template Total1.056297.020.5281
Template load0.00220.205020.0011
Template processing1.053996.811720.5270
Template load and register function0.00010.011710.0001
states
state_id_array0.00080.076410.0008
state_identifier_array0.00220.206520.0011
Override
Cache load0.00190.1710370.0001
Sytem overhead
Fetch class attribute can translate value0.00090.082110.0009
Fetch class attribute name0.00090.082920.0005
XML
Image XML parsing0.00010.009810.0001
class_abstraction
Instantiating content class attribute0.00000.000520.0000
General
dbfile0.00060.0582100.0001
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 18
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs