Setting the default page

These documentation pages are no longer maintained. Please visit the new documentation site.

The default configuration (for the TSCM site) displays the eZ publish default welcome page. However, this is not the desired behaviour. We will change the default display to the welcome article that we just created. Therefore we have to perform the following steps:

  • Find the identification number of the node that points to the content object which contains the actual welcome article.
  • Make a site-specific configuration change that will instruct eZ publish to display the desired node.

Finding the ID of the node we want to display
In the administration interface, hover the mouse pointer over the article that you just created (titled "Welcome to the TSCM website!"). The text with the Node ID and Visibility will appear.
Make a note of this Node ID.

Changing the default node
Bring up the "settings/siteaccess/tscm/site.ini.append.php" file in an editor. Add to the SiteSettings section the following line:
IndexPage=/content/view/full/[NodeID]"

Replace [NodeID] for the node (only the number, no square brackets) of your article.
If you browse the site now, you will see something like this:

eZ publish will display the desired node using the standard template for the "Article" content class. The following section describes how to create and use a custom template.

Comments

Just a Guess

Tatiana:

If you were following the tutorial instead of the delightful suggestion to use the Admin Panel, I bet you'd have to flush the INI cache. (I'm starting to form a picture here)

Great!! Well done, but it does not appear!

While creating article it was ok, but I can't see it. There is no any error! It just invisible :)!
What's wrong?

Update for 3.4

To change the index page using 3.4 -- use the Admin panel - look under Set Up and then Settings - there is a nice little dialog box there for us now.......

Contents

Building an eZ publish site

Prerequisits
Situation
Creating the TSCM site
Testing the interfaces
Setting up the main layout
Creating sections
The welcome page
    Adding the contents of the welcome page
    Setting the default page
    Creating and using a custom template
The news page
The members page
The guestbook
The links page


Created

21/10/2003
3:15:12 pm
by Balazs Halasy

Last updated

23/11/2004
2:05:34 pm
by Raymond Bosman

Authors

Balazs Halasy
Ole Morten Halvorsen
Raymond Bosman



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.