Change the usual homepage with a wainting page

Author Message

chacha chacha

Monday 08 January 2007 1:33:48 am

Hello all,

On our web-site on Ez version 3.6.1, we will make a campagn about the Five years of Guantanamo.

So,
The user will go to our website.
1) He/She arrive on a special page, he can click to go to another web-site.
2) If the user doesn't click (This page will remain for 10 seconds), he will go to the index.php of our web-site.

My question is :
1) How I can do that with the index.php of Ez : I should only change the pagelayout or change also the template meta with a refresh specification ?

Thank you for your help.
Have a nice day.

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.

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 19 2025 00:06:58
Script start
Timing: Jan 19 2025 00:06:58
Module start 'layout'
Timing: Jan 19 2025 00:06:58
Module start 'content'
Timing: Jan 19 2025 00:06:59
Module end 'content'
Timing: Jan 19 2025 00:06:59
Script end

Main resources:

Total runtime1.3042 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.0469152.6406
Module start 'layout' 0.00750.0040 740.687539.4922
Module start 'content' 0.01151.2906 780.1797564.2344
Module end 'content' 1.30210.0020 1,344.414116.1250
Script end 1.3041  1,360.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.2625160.0002
Check MTime0.00130.1018160.0001
Mysql Total
Database connection0.00090.072510.0009
Mysqli_queries1.239395.0235630.0197
Looping result0.00070.0540610.0000
Template Total1.225994.020.6130
Template load0.00220.170820.0011
Template processing1.223793.827620.6118
Template load and register function0.00020.019210.0002
states
state_id_array0.00760.585010.0076
state_identifier_array0.00310.237220.0015
Override
Cache load0.00160.1223350.0000
Sytem overhead
Fetch class attribute can translate value0.00060.047220.0003
Fetch class attribute name0.00130.098860.0002
XML
Image XML parsing0.00070.054720.0004
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00660.5042170.0004
String conversion0.00000.000840.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
10content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs