Possible to override extension's templates in sitedesign!?

Author Message

Dominik Pich

Friday 23 April 2004 1:09:49 am

I have an extension called bought (design.ini.append there) that provides a new view for nodes: bought.tpl
'/extension/bought/design/standard/templates/node/view/bought.tpl'
I want my siteaccess to override that view... preferably for custom classes vie ovveride.ini.append or similiar...
Possible?

If not, how do you solve such obstacles?
Thanks,
Dominik

Paul Forsyth

Friday 23 April 2004 1:19:02 am

I tried this recently. I put the new view into my current design:

design/user/templates/node/view/list.tpl

then i could reference it with the override system.

[list_something]
Source=node/view/list.tpl
MatchFile=node/list_something.tpl
Subdir=templates
Match[class]=25

For your extension if putting it in design/standard doesn't work try it with your current site design.

paul

--
http://www.visionwt.com

Dominik Pich

Friday 23 April 2004 2:42:30 am

If I copy the view into my design, the view defined the extension is preferred.
If I move the view into my design, it works as you said...

Is this the 'plan'?

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 19 2025 09:44:32
Script start
Timing: Jan 19 2025 09:44:32
Module start 'layout'
Timing: Jan 19 2025 09:44:32
Module start 'content'
Timing: Jan 19 2025 09:44:32
Module end 'content'
Timing: Jan 19 2025 09:44:32
Script end

Main resources:

Total runtime0.0168 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.0065 589.4141152.6563
Module start 'layout' 0.00650.0034 742.070339.5078
Module start 'content' 0.01000.0048 781.578189.4141
Module end 'content' 0.01480.0020 870.992230.3047
Script end 0.0167  901.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.4314140.0002
Check MTime0.00116.7127140.0001
Mysql Total
Database connection0.00116.572010.0011
Mysqli_queries0.003521.148230.0012
Looping result0.00000.083810.0000
Template Total0.00179.910.0017
Template load0.00095.148510.0009
Template processing0.00084.747910.0008
Override
Cache load0.00063.342910.0006
General
dbfile0.00031.704880.0000
String conversion0.00000.039840.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