Forums / General / Dynamic Flash Menu

Dynamic Flash Menu

Author Message

Felix Laate

Thursday 02 June 2005 2:41:49 am

Hi all!

I've been challenged to create a ez site with a bombastic (don't tell anyone I said so..) flash menu dynamically created according to the content folder structure.

Has anyone done this? And if so, does that someone want to share some of that experience with the rest of us?

Felix

PS! Sorry about my bla bla. Didn't sleep last night..

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Thursday 02 June 2005 3:09:20 am

Hi Felix,

I have one question ;) What is the reason using flash to create this menu?

You can use for example RSS export for folder, and then use ActionScript to read data from XML and create menu, this should work ...

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Felix Laate

Thursday 02 June 2005 3:52:20 am

Hi Luke!

The design is made by an advertising agency. I only need to implement it in ez Publish..

Is there any way to trigger the RSS export on demand, so that the menu can be dynamically updated as the content structure is?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Łukasz Serwatka

Monday 06 June 2005 12:38:16 am

You can use "layout" module, define new view layout.ini.append.php and use template to display xml output. You will have to add MIME header in /kernel/layout/set.php file.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Felix Laate

Monday 06 June 2005 5:44:10 am

Hi Luke!

Thanks for your tip!

Hope you had a great time at Gaustadblikk!

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Ekkehard Dörre

Monday 06 June 2005 7:26:24 am

Hi,
a litle more info about flash in ez:

http://ez.no/community/forum/setup_design/macromedia_flash_ezpublish_expanding_possibilities

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Heiner Wurbs

Tuesday 07 June 2005 12:07:57 am

Hi,
I tried also to create a menu with flash as also showing content with flash. As I know, there are actually 3 possibilities, which are usefull for different tasks:

1) URL Variables

{*Flash Menu*}
{let hyperlinks=""
	 linktexts=""
	 mainMenu=treemenu( $module_result.path,
                                    $module_result.node_id,
                                    array('folder'), 0, 1 )}
{section var=menu loop=$mainMenu}
	{set hyperlinks=concat($hyperlinks,'&link',$menu.index,'=/mydesign',$menu.item.url_alias)}
	{set linktexts=concat($linktexts,'&text',$menu.index,'=',$menu.item.text)}
{/section}


<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"
 WIDTH="180" HEIGHT="300" id="flash_menu" ALIGN="">
	<PARAM NAME=movie VALUE="{concat("/design/mydesign/images/flash_menu.swf?l=0",$hyperlinks,$linktexts)}">
	<PARAM NAME=quality VALUE=high>
	<PARAM NAME=bgcolor VALUE=#FFFFFF>
	<EMBED src={concat("images/flash_menu.swf")|ezdesign} quality=high bgcolor=#FFFFFF  WIDTH="180" HEIGHT="300" NAME="flash_menu" ALIGN=""  TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

{/let}

remark: I have a problem using ezdesign and concatenating $hyperlinks and $linktexts to the flash file.

In the flash file you have to loop over the variables with actionscript.

2) RSS
Inserting a flash file e.g. as an embed object and asking inside from actionscript the RSS, e.g.:

urlXML = new XML ();
urlXML.ignoreWhite = true;
urlXML.onLoad = function (success) {
        if (success) {
	  var_title = this.firstChild.firstChild.nextSibling.childNodes[0].firstChild.nodeValue;
	  var_link = this.firstChild.firstChild.nextSibling.childNodes[1].firstChild.nodeValue;
	  var_descr = this.firstChild.firstChild.nextSibling.childNodes[2].firstChild.nodeValue;

	}
};
urlXML.load ("http://myserver/index.php/mydesign/rss/feed/testing");

3. layout
Creating an extra layout, which delivers xml to the flash file. I haven't tried it already, and I don't know it its working, because a site request requires two calls to the eZ system, one for the normal pagelayout and one for the xml content in the extra layout.

Since now I haven't any of this solutions in a production site, so I can't tell you, how this behave in a real website.

Regards,
Heiner

Ekkehard Dörre

Tuesday 07 June 2005 1:25:53 am

Hi,

with e.g.
/layout/set/print/ID or NiceURL
for this page:
http://www.ez.no/layout/set/print/community/forum/general/dynamic_flash_menu
you get the design/standard/print_pagelayout.tpl

with layout/set/popup/ID or NiceURL
http://www.ez.no/layout/set/popup/community/forum/general/dynamic_flash_menu
design/standard/popup_pagelayout.tpl

So one way is a clean pagelayout.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Felix Laate

Tuesday 07 June 2005 4:13:53 am

Hi all!

Thank you all so far! I'm into testing it all out right now..

:-) Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

eZ debug

Timing: Jan 31 2025 03:43:25
Script start
Timing: Jan 31 2025 03:43:25
Module start 'content'
Timing: Jan 31 2025 03:43:25
Module end 'content'
Timing: Jan 31 2025 03:43:26
Script end

Main resources:

Total runtime0.1808 sec
Peak memory usage8,192.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8047370.3125
Module start 'content' 0.00600.0122 958.11721,013.5781
Module end 'content' 0.01820.1625 1,971.69533,901.6484
Script end 0.1807  5,873.3438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00422.3037200.0002
Check MTime0.00120.6897200.0001
Mysql Total
Database connection0.00060.339610.0006
Mysqli_queries0.091050.31801410.0006
Looping result0.00120.68721390.0000
Template Total0.162289.710.1622
Template load0.00080.417110.0008
Template processing0.161489.288110.1614
Override
Cache load0.00050.285910.0005
Sytem overhead
Fetch class attribute can translate value0.00211.161610.0021
XML
Image XML parsing0.00030.150010.0003
General
dbfile0.00683.7406200.0003
String conversion0.00000.002630.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.0002 secs