Show different flash files in different page Options
sajith
Posted: Tuesday, April 29, 2008 10:00:46 AM
Rank: Enthusiast

Joined: 4/22/2008
Posts: 41
Location: Dubai
HI,

In all my pages i have a banner section where i show flash files.
Is it possible to use some xslt or something that load flash files depending on the page selected for viewing.



Sajith.
imayat12
Posted: Tuesday, April 29, 2008 10:04:34 AM

Rank: Addict

Joined: 7/19/2006
Posts: 522
Location: Preston, UK
sajith,

I did something like this a while back. The flash displayed was dependant on the page hit we had bunch of pages targetting different industry sectors ie builders , architects. In my media directory i had in one folder all my flash files. I tagged the files with sector meta data type so my builder flash movie was tagged with builder. When the page loaded i got the page name which in this case was builder i then did getmedia in xslt where in my specific media folder the flash was tagged with builder and then displayed it.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
sajith
Posted: Tuesday, April 29, 2008 10:22:42 AM
Rank: Enthusiast

Joined: 4/22/2008
Posts: 41
Location: Dubai
Hi Ismail,

Can u pelase provide some sample code or reference for linking with meta data type and all..

Sajith.
imayat12
Posted: Tuesday, April 29, 2008 10:29:51 AM

Rank: Addict

Joined: 7/19/2006
Posts: 522
Location: Preston, UK
sajith,

I did something like this

Code:


<xsl:variable name="application" select="$currentPage/@nodeName"/>
<!-- get the list of flash movies from flash section in media -->

<xsl:variable name="movies" select="umbraco.library:GetMedia($flashStartNode/node/@id, 'true')"/>

<!-- get me flash movie whose application data is same as current page name -->
<xsl:value-of select="$movies/node[data[@alias='application']/text()=$application]/data[@alias='uploadMovie']/text()"/>



In my document type i had data type called application which was drop down list type with all my 10 or so application values. Please note this is case sensitive.

Regards

Ismail

Level 2 certified. If it aint broke dont fix.
sjors
Posted: Tuesday, April 29, 2008 10:42:43 AM

Rank: Fanatic

Joined: 7/20/2006
Posts: 405
Location: Amsterdam
Last week there was a similar thread regarding images, there is some information in it there.
sajith
Posted: Tuesday, April 29, 2008 12:18:40 PM
Rank: Enthusiast

Joined: 4/22/2008
Posts: 41
Location: Dubai


if u have, Can u paste the link here for reference.

Sajith.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.