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.