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