Problems with news templates in the tutorial

Author Message

Trond Åge Kvalø

Thursday 04 December 2003 2:17:52 am

Hi there!

I'm using eZ publish 3.2-3 SVN:3893
Apache 2.0.47 (Win32)
PHP 432
MySQL 4.0.14

I'm having problems with the news templates in the tutorial "Building an eZ Publish Site".

The template for the welcome page works ok. But I do not see any of the supposed changes when I create the following custom templates:
full_view_news_folder.tpl
line_view_news_article.tpl
full_view_news_article.tpl

Yes, I have cleared all the caches several times.

And this is my override.ini.append in settings/siteaccess/tscm:

<?php /* #?ini charset="iso-8859-1"?

[sortlist]
Source=node/view/full.tpl
MatchFile=sortlist.tpl
Subdir=templates
Match[class]=1

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

[full_view_welcome]
Source=node/view/full.tpl
MatchFile=full_view_welcome.tpl
Subdir=templates
Match[node]=44

[full_view_news_folder]
Source=node/view/full.tpl
MatchFile=full_view_news_folder.tpl
Subdir=templates
Match[class]=1
Match[section]=4

[line_view_news_article]
Source=node/view/line.tpl
MatchFile=line_view_news_article.tpl
Subdir=templates
Match[class]=2
Match[section]=4

[full_view_news_article]
Source=node/view/full.tpl
MatchFile=full_view_news_article.tpl
Subdir=templates
Match[class]=2
Match[section]=4
*/ ?>

To me it seems that it's only the template specified with a node number that works.

What will I have to change to make the others work?

Best regards
Trond Kvalo
Senior developer
Atlantia as http://www.atlantia.no/
Norway

trondåge

Jonny Snell

Wednesday 17 December 2003 1:16:01 pm

Hi,

I do have the same problem, only with full_view_news_folder.tpl. When I got problem with that template I stop the turtorial and try to find what's wrong. I cant find anything wrong. Maybe a bug?

I would like some staff member to give some explanation. Maybe we should wait for the new version 3.3 as a Chrismas present!!

/Jonny

Stéphane Cesbron

Thursday 18 December 2003 3:10:49 am

Hi,

I've got the same pb ! I made a post on this forum yesterday and I'm still waiting for some explanations.

It might be a bug !

Regards,
Stéphane

Balazs Halasy

Thursday 18 December 2003 4:00:20 am

Hi,

Have you remembered to create the different sections and assigned the different folders to these sections?
Keep in mind that the override rules only kick in if
both the class ID and the section maches. Please re-check that you've followed that tutorial step-by-step. I've talked to several people who got it working without problems.

Balazs

Stéphane Cesbron

Thursday 18 December 2003 5:27:09 am

Thanks a lot for your reply.

I solve the problem doing the following :
I went back to the administration pane (in Section) and reasigned the start of the section to the news folder.

Best Regards

Jonny Snell

Thursday 18 December 2003 12:10:41 pm

Hi and thanks for the hints.
I solved the problem as well.
I followed the .pdf tutorial and as far as I can see the moment to assign the news folder to the news section is much later in the .pdf manual than in the online manual.

/Jonny

Balazs Halasy

Friday 19 December 2003 1:47:49 am

A-HA! Thanks for pointing this out. We're looking into this at the very moment. There was a problem with an earlier version of the PDF generator/export engine (sorting of child nodes was messy). We're fixing the PDFs and the sorting mechanism now. Again, thanks for pointing it out!

Balazs

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

Main resources:

Total runtime0.7895 sec
Peak memory usage4,096.0000 KB
Database Queries73

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 589.4844152.6406
Module start 'layout' 0.00660.0036 742.125039.4766
Module start 'content' 0.01010.7777 781.6016665.8438
Module end 'content' 0.78790.0016 1,447.445316.1250
Script end 0.7895  1,463.5703 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4905160.0002
Check MTime0.00170.2177160.0001
Mysql Total
Database connection0.00120.157810.0012
Mysqli_queries0.707289.5749730.0097
Looping result0.00100.1229710.0000
Template Total0.748994.920.3745
Template load0.00220.272720.0011
Template processing0.746794.580620.3734
Template load and register function0.00020.020910.0002
states
state_id_array0.00110.141510.0011
state_identifier_array0.00120.150720.0006
Override
Cache load0.00200.2475890.0000
Sytem overhead
Fetch class attribute can translate value0.00100.121040.0002
Fetch class attribute name0.00220.273480.0003
XML
Image XML parsing0.00140.172240.0003
class_abstraction
Instantiating content class attribute0.00000.002790.0000
General
dbfile0.00090.1080160.0001
String conversion0.00000.001140.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
19content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
13content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 43
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs