Share » Forums » Setup & design » Change the usual homepage with a...

Change the usual homepage with a wainting page

Change the usual homepage with a wainting page

Monday 08 January 2007 1:33:48 am - 4 replies

Author Message

André R.

Monday 08 January 2007 2:16:49 am

Just override paglayout.tpl on the welcome page (the welcome node), and do what you want to do with it.

Something like this:

[welcomepage_override]
Source=pagelayout.tpl
MatchFile=pagelayout_welcome.tpl
Subdir=templates
Match[node]=2

:

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

chacha chacha

Monday 08 January 2007 2:24:31 am

Thank you very much André.

And last question :
I put in the "pagelayout_welcome.tpl" the meta tags going to the "index.php" directly ?

Thanks.

André R.

Monday 08 January 2007 4:19:41 am

I'am not quite sure what you mean here, the override setting I was showing you should be placed in your override.ini file. This is the file controlling template overrides.
It's located in settings/siteaccess/'your_siteaccess_name'/override.ini, if not create it.

After you have done that you'll have to create pagelayout_welcome.tpl in your design directory, to be precise design/'your_site_design'/templates/pagelayout_welcome.tpl

A tip would be to copy the existing paglayout.tpl file your using. If this is a clean eZ Publish 3.6.1 install, that should be located in design/base/templates/paglayout.tpl

PS: By index.php I guess you mean the front page, if virtualhoste mode had been turned on index.php would not show up your url.

PS2: Some settings override files (ini files), have append.php as the end of the filename, this is strictly for security reasons. (so web surfers can't open them and read your database settings and so on)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

chacha chacha

Monday 08 January 2007 5:08:46 am

Thank you very much for all details Andre. Now, I understand all.
Sorry, if I was not very clear in my post.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu