flash on the welcome page, different design on each pages

Author Message

yohann monnier

Friday 09 December 2005 9:19:03 am

hello, im french, excuse my bad english..
ok im trying to learn how to do a awebsite with ez publish, I want to have a flash object on my welcome page, I havent found how to do. I have done a first pagelayout.tpl , but I want it to work only on my first page, I want an other design on each page I link. I know I have to use override, but I dont understood how. I know that it seems to be stupid, but when you dont know how o do, you cant do... so if you want to help me it will be really cool.
Thx a lot. Yohann

yohann monnier

Friday 09 December 2005 9:24:59 am

any one for me too?

Vjeran Vlahovic

Friday 09 December 2005 11:31:14 am

Hi,
Just add into your settings/siteaccess/[yourSettingsDir]/override.ini.append.php file something like this:

[frontpage]
Source=pagelayout.tpl
MatchFile=pagelayout_front.tpl
Subdir=
Match[node]=2

And create new template named pagelayout_front.tpl in your design/[yourDesignDir]/templates. That is a new pagelayout template for your welcome page.

I recomend you to read Building an eZ site - http://ez.no/content/download/48190/124975/file/building.pdf. That's a good way to start.

http://www.netgen.hr/eng

Siw Helen Thorslund

Saturday 10 December 2005 1:19:01 pm

Another solution can be to do a switch in pagelayout.tpl

{switch match=$module_result.node_id}
	{case match='2'}
		<object type="application/x-shockwave-flash" data="myFile.swf" width="7010" height="150">
			<param name="movie" value="myFile.swf" />
		</object>
	{/case}
	{case}
		<img src="myFile.jpg">
	{/case}
{/switch}

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

yohann monnier

Sunday 11 December 2005 4:39:39 am

<b> Thanks a lot for your answers </b>
but i have not succeeded doing the override for the flash object, i want my flash object appearance just one time, when people enter my website, but not when they come back on my welcome page... how to do an override just one time??

Siw Helen Thorslund

Sunday 11 December 2005 10:46:39 am

Try using a cookie...

www.VZT.no ( http://www.VZT.no )
VZT References ( http://http://vzt.no/index.php/vzt_eng/referanser )
VZT Extensions ( http://vzt.no/index.php/vzt_eng/extensions )
www.MediaBase.no ( http://www.MediaBase.no )

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 31 2025 06:20:38
Script start
Timing: Jan 31 2025 06:20:38
Module start 'layout'
Timing: Jan 31 2025 06:20:38
Module start 'content'
Timing: Jan 31 2025 06:20:38
Module end 'content'
Timing: Jan 31 2025 06:20:38
Script end

Main resources:

Total runtime0.0123 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.0043 588.3906151.2422
Module start 'layout' 0.00430.0020 739.632836.7109
Module start 'content' 0.00630.0046 776.343894.3438
Module end 'content' 0.01090.0014 870.687537.9922
Script end 0.0123  908.6797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002318.8734140.0002
Check MTime0.00108.2507140.0001
Mysql Total
Database connection0.00075.756710.0007
Mysqli_queries0.001713.767330.0006
Looping result0.00000.089110.0000
Template Total0.00108.510.0010
Template load0.00086.831410.0008
Template processing0.00021.616810.0002
Override
Cache load0.00064.947310.0006
General
dbfile0.00086.649480.0001
String conversion0.00000.046540.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