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

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

Main resources:

Total runtime0.0172 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.3359152.6250
Module start 'layout' 0.00540.0040 741.960939.4453
Module start 'content' 0.00940.0055 781.4063105.4297
Module end 'content' 0.01480.0023 886.835946.3047
Script end 0.0172  933.1406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002615.2831140.0002
Check MTime0.00116.6082140.0001
Mysql Total
Database connection0.00084.548410.0008
Mysqli_queries0.003318.939330.0011
Looping result0.00000.110710.0000
Template Total0.00179.810.0017
Template load0.00095.296810.0009
Template processing0.00084.473710.0008
Override
Cache load0.00063.707310.0006
General
dbfile0.00031.534180.0000
String conversion0.00000.051240.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs