Forums / Setup & design / flash on the welcome page, different design on each pages
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
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 )
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??
Sunday 11 December 2005 10:46:39 am
Try using a cookie...