Really really stuck

Author Message

Michael Zielinski

Tuesday 06 July 2004 12:39:37 am

Hi,
I am trying to work my way through the tutorial, but am stuck at the members/guestbook sections. I can get the classes to work and display properly but the template overrides don't work. I sthere any place where I can check for correct folder->section assignment?

Thanks

Michael

Kåre Køhler Høvik

Tuesday 06 July 2004 12:53:44 am

In the admin interface, the section for all the objects are listed in the node list. You can assign sections in the admin interface under : <i>Set up</i>-><i>Advanced</i>-><i>Sections</i>

--
Kåre Høvik

Kåre Høvik

Michael Zielinski

Tuesday 06 July 2004 2:16:13 am

Thanks for the quick reply.
Everything seems to be ok, but I still don't see the modified folder template, but the standard template instead.
The member section is inside another section. Could that be a problem?
I use the code from the tutorial.

This is what's in the override.ini when set to 'mzhome'. 'admin' does not have a corresponding value.

full_member_folder_view (4) [add setting] Placement Value Edit
Source siteaccess "node/view/full.tpl"
MatchFile siteaccess "full_member_folder_view.tpl"
Subdir siteaccess "templates"
Match siteaccess [class_identifier] folder
siteaccess [section] 13

Michael

Kåre Køhler Høvik

Tuesday 06 July 2004 11:07:06 pm

Did you remember to clear cache after adding template override ?

Kåre Høvik

Michael Zielinski

Tuesday 06 July 2004 11:09:14 pm

Yup. I'll try the tutorial again today, maybe it'll work

Michael Zielinski

Wednesday 07 July 2004 3:30:51 am

Ok,
after reading and searching and more reading I found this thread http://www.ez.no/ez_publish/documentation/building_an_ez_publish_site/the_news_page/overview_of_the_latest_news and the user comments solved the problem.

So if when adding template overrides make sure that the more restrictive your match is the further to the top in the override file the override has to go. Apparantly EZPublish uses a first fit selection routine so an override with match 'folder' on the top of the file will catch all overrides and more restrictive ones with match 'folder AND section' further down in the file will never be parsed.

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