Forums / Setup & design / Setting default node

Setting default node

Author Message

Alex Kink

Thursday 30 September 2004 7:39:26 am

I searched the forum but didn't find an answer.

I was following the eZ publish tutorial on building a basic website and got to a point where the tutorial tells me to set a default node by changing the IndexPage value in site.ini.append file. By few other details before that I figured out that the doc file is a little bit old :) In the cache section it says that the doc is based on version 3.2. Im working with version 3.4.
The IndexPage setting is missing from the site.ini.append.php file alltogether. I tried to enter it manually, but it didnt help.

So how can I change the default node in version 3.4

Thanks for any help!
-Alex

Lazaro Ferreira

Thursday 30 September 2004 7:47:04 am

Hi,

YOu can do it via IndexPage
i.e:

IndexPage=/collaboration/view/summary

will open a collaboration summary page as default

You should clean the cache after changing settings

Lazaro
http://www.mzbusiness.com

Lazaro
http://www.mzbusiness.com

Alex Kink

Thursday 30 September 2004 7:53:34 am

Thanks for your quick reply Lazaro

Do I have to enter this line into my site.ini.append.php?

Thanks again

Lazaro Ferreira

Thursday 30 September 2004 8:12:19 am

Hi,

Yes, you should put it under SiteSettings Group as :

[SiteSettings]
IndexPage=/collaboration/view/summary

Then go to administration and clear the cache

Lazaro
http://www.mzbusiness.com

Lazaro
http://www.mzbusiness.com

Peter Schroeder

Friday 01 October 2004 4:41:12 am

I encountered this problem too and did exactly this what worked just fine. However, after taking the next step and creating the custom template to format the page I can't get eZpublish to use it. I created the custom template just as instructed and even copied the code from the web site into the template still without success. Anyone an Idea what I should look out for?

Lazaro Ferreira

Friday 01 October 2004 8:23:18 am

Turn on debug, clear all the caches, and look for any debug output error

Lazaro
http://www.mzbusiness.com

Peter Schroeder

Sunday 03 October 2004 8:33:09 am

I flashed the caches a hundred times since and debug is on. However, debug doesn't complain but the override template is clearly not used. The same happened to the next custom template for the news articles. eZpublish seems to simply ignore the custom templates.

Marko Žmak

Sunday 03 October 2004 3:41:10 pm

Check out if you have overriden the right node (or section or class...). For example, if sou want to make a template for the folder "News", you have to write it's node ID in te Node field when you're making the template override.

Check ut if the overrides are recorded. Open the admin interface of your site and go to templates. Then under node/view/full.tpl check if the overrides exsist. If not try adjusting the permissions for the design folder of your EZ site (see the setup documentation).

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Peter Schroeder

Wednesday 06 October 2004 5:03:05 am

I did set the right node id when I created the override template because it is the start page and I had to enter the node id in the site.ini.append.php file. The override template is stored because I can see it in the template view list ( design/daltic/override/templates/full_view_welcome.tpl node : 82) and also in my design folder when I ftp to it. It still doesn't use the custom template. Any other idea where I could look?

Marko Žmak

Monday 11 October 2004 5:23:42 am

Well you could check if the:

design/daltic/override/templates/full_view_welcome.tpl

file (and it's parent directories) has the apropriate permissions for reading (it's explained in the docs), but that's probably not the problem. If you could supply here the URL of the page that's not displayed correctly maybe it can clear some things.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Peter Schroeder

Tuesday 12 October 2004 12:54:22 am

The URL is http://www.daltic.org

Debug is turned on but doesn't complaine about anything.

Marko Žmak

Tuesday 12 October 2004 8:38:03 am

Have you overriden the right template on the right site?

You should override the:

content/view/fulll

of the daltic site. Check this. And try disabling caching and clearing ALL the caches.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Peter Schroeder

Tuesday 12 October 2004 10:06:09 am

I sought it was /node/view/full

I didn't fined any template that said /content/view/full and the tutorial sais /node/view/full. I did disable the cache and cleared it a hundred times.

Marko Žmak

Wednesday 13 October 2004 5:32:40 am

You're right it's node, not content, my mistake.

At this point I really don't know what could be the problem. Maybe if you try installing EZ Publish again.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth