I just can't get this working... (3.1)

Author Message

Jerry Jalava

Friday 27 June 2003 3:10:46 am

Hi,

I just updated my 3.0.2 eZ to 3.1.1 and I am having big diffuculties to get the site up again...

First and most important is the templates... I know the template handling has changed and I tried using the override.ini.append -file, but don't know how I should add some of the templates.
ie. The sections don't work. Should I put them somehow to the override file?

Is there any easier way to update to this 3.1 than changing template names & writing them to override file? etc...

Please help...
Regards,
Jerry

Paul Forsyth

Friday 27 June 2003 3:33:47 am

I take it you have looked at the docs:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/terminology_basics/the_new_template_override_system_from_31_onwards

Can you give a clear example of what is causing you problems?

paul

Jerry Jalava

Friday 27 June 2003 7:01:15 am

Hi Paul,

Yes, I've readed that article and made some example tries, but it still doesnt show the site right... I think it doesn't load the section templates at all...
Is the naming with them still the same?
Must I put them in override.ini also?
Is there any other way of putting the info to override file than writing it straight in there?
And are the other directories still the same?

Right now I've managed to get the Admin site working, but the user site just doesn't load right...
I've tried to clear cache many times and all that, but still... :(

My Design folder tree was like this in 3.0.2:
-Site
-Images
-Javascripts(*)
-Override
-Templates
-Node
-View
-Stylesheets
-Templates (**)

* Here is the javas for my Menu, which I include in every section template
** Here is my pagelayout.tpl, page_copyright, page_topbox, etc... And page_main.tpl

On my pagelayout.tpl I have a table with three horizontal cells which are page_topbox, page_main (middle one) and page_copyright.

Page_main has two vertical cells, on the left left_menu.tpl, and the other is module_result.content.

All the "let" codes are inside section templates, so when I tried to include my page_frontpage.tpl from override.ini, I got it visible, but the javascript doesn't work (Sets the right path in HTML code for "javascript src") and the "let" functions don't work... I can't get any content except the one that is still hardcoded to template...

Is there any setting in site.ini, which could cause this? Can I choose from anywhere if I wanted to use the old style and not this new one?

Thanks alot,
Jerry

Jerry Jalava

Monday 30 June 2003 3:55:54 am

Finally I got it to work! I just tried and tried hundreds and hundreds different combinations with files and some code and now finally almost everything is working like a chram... :)

But still... I can't get the line_*.tpl workin. Don't know what's the reason...
My override.ini.append has these lines:
[news]
Source=node/view/full.tpl
MatchFile=layout/news.tpl
Subdir=templates
Match[class]=6

[line_news]
Source=node/view/line.tpl
MatchFile=layout/line_news.tpl
Subdir=templates
Match[class]=6

I have cleared cache many times and I've tried without the "layout/", but the line template just doesn't show. Full template works fine... :(

I'm frustrated to this little problem, 'cause I just can't find answer from anywhere...

Thanks,
Jerry

Jerry Jalava

Monday 30 June 2003 4:25:17 am

Got it to work! :)

The problem was whitespace after the
"MatchFile=line_news.tpl" in override.ini.append, so it looked like "MatchFile=line_news.tpl ".

I think there should be a parser inside eZ that removes that kind of whitespaces... 'Cause these kind of things can be really bothering and take lot of time to discover...

Regards,
Jerry

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