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.

eZ debug

Timing: Jan 19 2025 00:30:47
Script start
Timing: Jan 19 2025 00:30:48
Module start 'layout'
Timing: Jan 19 2025 00:30:48
Module start 'content'
Timing: Jan 19 2025 00:30:48
Module end 'content'
Timing: Jan 19 2025 00:30:48
Script end

Main resources:

Total runtime0.9022 sec
Peak memory usage4,096.0000 KB
Database Queries66

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 587.9063152.6250
Module start 'layout' 0.00530.0049 740.531339.4297
Module start 'content' 0.01020.8904 779.9609566.7969
Module end 'content' 0.90060.0016 1,346.757812.1875
Script end 0.9022  1,358.9453 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3624160.0002
Check MTime0.00130.1408160.0001
Mysql Total
Database connection0.00090.099310.0009
Mysqli_queries0.843493.4796660.0128
Looping result0.00090.0942640.0000
Template Total0.864995.920.4325
Template load0.00220.240120.0011
Template processing0.862895.624320.4314
Template load and register function0.00030.030410.0003
states
state_id_array0.00100.113610.0010
state_identifier_array0.00100.109620.0005
Override
Cache load0.00180.2002350.0001
Sytem overhead
Fetch class attribute can translate value0.00090.098120.0004
Fetch class attribute name0.00140.150870.0002
XML
Image XML parsing0.00170.191020.0009
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00160.1777150.0001
String conversion0.00000.000940.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs