Forums / Setup & design / Intro page

Intro page

Author Message

Michael Kress

Saturday 22 September 2007 2:31:42 pm

Hi,I'd like to create a flash based intro page which just tells the visitor "Hi, welcome, wait 30 sec and see some pics or click on [skip intro]".
Is there any method that you'd recommend me for this?

I would do it like this:
www.siteinquestion.com --> This is the intro page and forwards to
siteinquestion.com --> which is the ez publish installation.
This is not very elegant, but it should work.

Any ideas to make it more elegant?

Thanks
Michael

Felix Laate

Sunday 23 September 2007 6:44:01 am

Hi Michael,

I'm sure there are many ways to do this. I have done it 2 or 3 ways myself :-)

Why not try this approach:

1) create a class which you e.g. call intro. You need an name attribute, but nothing else.

2) somewhere in the content-structure create an object of this class

3) under override/site.ini.append.php do

# Which page to show when the root index is accessed
IndexPage=/content/view/sitemap/_NODE_ID_OF_OBJECT_YOU_CREATED_/

4) make sure the redirect links in your flash point to the main page

That's it!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Michael Kress

Monday 24 September 2007 1:05:05 pm

Hi, I created _NODE_ID_OF_OBJECT_I_CREATED_ of class (I called it) flashintro and I can see it, but what I don't understand: where do I upload the swf file and how do I embed it? With the method you described I just am able to fill in a name into the name field and that's it, no possibility to include my flash html code.
Greetings Michael

Felix Laate

Monday 24 September 2007 1:44:40 pm

Hi Michael,

sorry that my post was somewhat ncomplete. Two ways to do this:

1) use some logic in your pagelayout-template. e.g.

{if eq($module_result.node_id,_THE_NODE_ID_OF_YOUR_INTRO_)}
<object width="550" height="400">
<param name="movie" value="/path/to/your/introflash.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
{else}

_YOUR_NORMAL_PAGELAYOUT_STUFF_

{/if}

2) make a new section with its own pagelayout-template which basicaly only shows your flash

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Michael Kress

Tuesday 02 October 2007 2:39:35 pm

Hi Felix, thank you very much for your suggestions. I think I found quite an easy way, your {if} in pagelayout.tpl lead me to my solution which is as you said: certainly just one out of many.

{if eq($module_result.node_id,2)}{include uri='design:flashintro.tpl'}{else}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
....
  pagelayout.tpl stuff
...
</body>
</html>{/if}

flashintro.tpl is just an ordinary HTML page which just contains the swf, nothing else.
So with this solution I don't use my old front page anymore. I created an item on main menu level called "home" and my flash forwards to the URL "home" (after 30 secs or with skip button), which will then be the main page for the rest of the visit.

Greetings
Michael

eZ debug

Timing: Jan 18 2025 18:31:33
Script start
Timing: Jan 18 2025 18:31:33
Module start 'content'
Timing: Jan 18 2025 18:31:34
Module end 'content'
Timing: Jan 18 2025 18:31:34
Script end

Main resources:

Total runtime1.1237 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0080 587.5469180.8516
Module start 'content' 0.00800.9093 768.3984568.0781
Module end 'content' 0.91730.2062 1,336.4766337.3984
Script end 1.1236  1,673.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.3958210.0002
Check MTime0.00150.1329210.0001
Mysql Total
Database connection0.00170.150710.0017
Mysqli_queries1.031591.80282000.0052
Looping result0.00210.18901980.0000
Template Total1.088296.820.5441
Template load0.00260.229120.0013
Template processing1.085796.618320.5428
Template load and register function0.00010.013110.0001
states
state_id_array0.00080.070010.0008
state_identifier_array0.00160.138820.0008
Override
Cache load0.00210.1908420.0001
Sytem overhead
Fetch class attribute can translate value0.00170.150930.0006
Fetch class attribute name0.00200.175760.0003
XML
Image XML parsing0.00110.095230.0004
class_abstraction
Instantiating content class attribute0.00000.001370.0000
General
dbfile0.00350.3134270.0001
String conversion0.00000.000530.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
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
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs