Forums / Setup & design / Problem with Tutorial

Problem with Tutorial

Author Message

Christoph Nelles

Tuesday 11 May 2004 3:42:09 pm

Hi!

I am trying once more time to get ezPublish running. Currently i am working with ezPublish 3.4Beta and PostgreSQL 7.4.0. I worked thru the "Building an eZ publish site" Tutorial step by step, but i am stuck with one problem. i can?t override the template for the "news listing". Even after creating the overriding template, ezPublish keeps on using the design/base/override/templates/full/folder.tpl template. I have no idea which settings are evaluated in which order to find the appropiate template.

another weird thing, that might be related to this is that i can?t change the priority in the template view and that for my template numbers in the conditions are shown, instead of the name.

is the tutorial obsolete, did i something wrong, or is it a bug?

thanx in advance for any help
Christoph Nelles

Cristian G. L.

Thursday 13 May 2004 3:35:42 am

Hi Christoph
Try to clear all caches. If doesn't work, try to disable the caches. You can do it adding this to your site.ini.append:

[ContentSettings]
ViewCaching=disabled

[TemplateSettings]
TemplateCache=disabled

[OverrideSettings]
Cache=disabled

Regards,

Cristian

Alex Jones

Thursday 13 May 2004 6:04:15 am

Christoph, make sure that yo ucleared the caches after making your changes. Also, another thing to keep in mind is the order of overrides in your override.ini.append. eZ publish will use the first override that it encounters. So, you want to put your most specirfic override (match node) at the top, and the least specific (section orclass) at the bottom. If this doesn't help, please post the contents of your override.ini.append file so we can look through it.

Could you be a bit more descriptive about not being able to change the priority? What is or is not happening?

Some of these issues may be due to the fact that you are using the beta, so you may want to check out the bug lists to see if anyone else has reported the issue.

Bud Reports: http://ez.no/community/bug_reports

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Christoph Nelles

Thursday 13 May 2004 5:10:16 pm

a nice feature would be a debug log where is logged which config files where searched and used in order. i have a site.ini.append.php, but no site.ini.append. i just hardlinked them both.but for override.ini.append i had both versions (with .php).

according to the tutorial, i cleared the caches all the time, with no success. in the other thread here, cristian reported the same thing.

hmmm...
while writing this i just removed the override.ini.append.php an hardlinked override.ini.append to the name. after clearing the cache as usual, it worked this time. it may just be luck, but i will check tomorrow evening again.
and now, the priorities for the templates works in the settings->templates screen. hmmm..

that?s the order in which *.append and *.append.php are being checked? seeing everything doubled is confusing.

thanks for your help so far.

Alex Jones

Friday 14 May 2004 6:27:38 am

Actually, you don't need both <i>*.ini.append</i> and <i>*.ini.append.php</i>. Sorry for the confusion. The use of <i>.php</i> is a security precaution as it ensures that a user cannot view the contents of your configuration files. To be honest, I am not sure which version will take precedence.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Christoph Nelles

Friday 14 May 2004 7:22:11 am

oi, what a lot of spelling errors, i shouldn?t be online so late.

ok, i will try something :
override.ini.append deleted, override.ini.append.php with the override for the news overview -> works
creating an override for the folder in section 1 in the admin-template menu, deleting cache -> override.ini.append created, new template not used.
overwriting override.ini.append.php with override.ini.append,deleting the cache -> new template not used
moving the new template section in the ini file to the top, deleting the cache -> new template used.

ok, i conclude from this, that the admin menu updates override.ini.append, but the template engine actually uses override.ini.append.php! and it?s being put at the end of the priority queue and get?s actually never used if you don?t update it manually. can someon confirm this?

what?s still confusing me is the priority field in the template menus. why is there an text input field if you can?t change anything?

Alex Jones

Friday 14 May 2004 7:37:35 am

Hrrrrm, that's an interesting set of observations. If <i>override.ini.append.php</i> is put at the end of the queue, then it makes some sense that it isn't visible as eZ publish uses the first match that applies to an object. Regarding th priority field, I am not sure what is causing the mixup as I don't have a lot of experience using the admin interface for it as I tend to edit the files directly.

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Christoph Nelles

Friday 14 May 2004 8:36:11 am

*g* if i want to do everything with an editor, i wouldn?t use a CMS ;)

i made a symbolic link pointing override.ini.append.php to override.ini.append and now everything works, even setting the priorities in the menu.
hm, i don?t dare to report this as a bug :(

Thanx for your help, it kept me trying to get this solved.