|
|
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.
|
|
 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.
|
|
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.
|
|
 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.
|
|
 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.
|
|
Rank: Enthusiast
Joined: 4/22/2008 Posts: 41 Location: Dubai
|
if u have, Can u paste the link here for reference.
Sajith.
|
|
|
Guest |