Forums / Setup & design / 3.1 problem: override-templates doesn't work?

3.1 problem: override-templates doesn't work?

Author Message

Jonny Bergkvist

Wednesday 04 June 2003 1:40:14 am

Hi,

I have upgraded from 3.0-2 to 3.1-b1 and now my override-templates will not load. Only full.tpl is being used.

I have the files (At first forum-post I forgotten "node/view" - now corrected here!):
/ezroot/design/hit/override/templates/node/view/full_class_1.tpl (folder) and
/ezroot/design/hit/override/templates/node/view/full_class_2.tpl (article)

Should this work as before?

I understand that in 3.1 you can make your own names on your override templates by specifying it in an override.ini.append

I have also tried this:
/ezroot/settings/siteaccess/hit/override.ini.append:
[folder]
Source=node/view/full.tpl
MatchFile=folder.tpl
Subdir=templates
Match[class]=1

[article]
Source=node/view/full.tpl
MatchFile=article.tpl
Subdir=templates
Match[class]=2

------------

Then I moved the full_class_1.tpl go .../design/hit/override/templates/folder.tpl, and full_class_2.tpl to article.tpl in the same folder as folder.tpl.

Uh! Not working either...
(in the admin-sitedesign this works fine, and I have checked all ini-files, folder-names etc. for miss-spellings etc.)

Please help any1 !

JonnyB

Karsten Jennissen

Wednesday 04 June 2003 1:46:49 am

Hi,

I am not sure about the changes in the directory structure but for the previous version I thought these would go into
/design/hit/override/templates/node/view/full_class_1.tpl

Am I mistaken?

See
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/custom_designs_directory_structure_explained
and
http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/view_modes_of_objects

You could also turn on debug and see which templates are actually used (have a look at the how-tos in the user docs on how to see which templates are used)

Karsten

Bård Farstad

Wednesday 04 June 2003 1:50:49 am

The override system has been changed to support multiple overrides and a GUI for override creation. This means that you need to create new override settings if you would like to upgrade to 3.1 B1 ( don't do this for production sites ).

More info:
http://ez.no/developer/ez_publish_3/forum/general/31_more_docs_needed_on_how_the_template_override_works

--bård

Documentation: http://ez.no/doc

Jonny Bergkvist

Wednesday 04 June 2003 2:20:41 am

Thanx Bård, I understand :-)

To use the new template-creation utility the webserver needs write-access to the override.ini.append, and the design/<sitedesign>/override folder.

I tried it out, and it works fine now!

JonnyB

eZ debug

Timing: Jan 18 2025 04:19:00
Script start
Timing: Jan 18 2025 04:19:00
Module start 'content'
Timing: Jan 18 2025 04:19:00
Module end 'content'
Timing: Jan 18 2025 04:19:00
Script end

Main resources:

Total runtime0.1634 sec
Peak memory usage4,096.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0068 588.9609180.8125
Module start 'content' 0.00680.0047 769.773497.9297
Module end 'content' 0.01160.1518 867.7031528.3750
Script end 0.1633  1,396.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00342.0571200.0002
Check MTime0.00140.8289200.0001
Mysql Total
Database connection0.00080.493210.0008
Mysqli_queries0.116171.01821410.0008
Looping result0.00150.92471390.0000
Template Total0.151592.710.1515
Template load0.00080.478510.0008
Template processing0.150792.221110.1507
Override
Cache load0.00050.321810.0005
Sytem overhead
Fetch class attribute can translate value0.00090.552610.0009
XML
Image XML parsing0.00020.124710.0002
General
dbfile0.00301.8261200.0001
String conversion0.00000.003830.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

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

Time used to render debug report: 0.0004 secs