Forums / Setup & design / Change the usual homepage with a wainting page

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.

eZ debug

Timing: Jan 31 2025 06:10:28
Script start
Timing: Jan 31 2025 06:10:28
Module start 'content'
Timing: Jan 31 2025 06:10:28
Module end 'content'
Timing: Jan 31 2025 06:10:28
Script end

Main resources:

Total runtime0.2730 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 588.0781180.8125
Module start 'content' 0.00770.0045 768.890698.0547
Module end 'content' 0.01220.2607 866.9453526.8750
Script end 0.2729  1,393.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.1843200.0002
Check MTime0.00120.4420200.0001
Mysql Total
Database connection0.00070.271910.0007
Mysqli_queries0.226883.09211410.0016
Looping result0.00120.43941390.0000
Template Total0.260395.410.2603
Template load0.00070.246210.0007
Template processing0.259695.108710.2596
Override
Cache load0.00050.174010.0005
Sytem overhead
Fetch class attribute can translate value0.00100.349110.0010
XML
Image XML parsing0.00020.079910.0002
General
dbfile0.00782.8654200.0004
String conversion0.00000.002530.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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