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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.