Hi guys I have a website that uses flash to display a slide show on the home page, the flash object is powered by an XML file that looks like this > http://pastebin.com/qczmTNL9
Now I want to make it possible for someone to use umbraco to add new pictures to the site, so I have to upload the image, then programaicly updated the XML file with the URL of the new slide.
How can I achive this, what is the best way? Any Ideas Please.
- Create an XSLT Macro that renders the desired XML. At the top of the macro add: <xsl:value-of select="umbraco.library:ChangeContentType('text/xml')"/>
- Create a blank template and add the macro to it.
- You can now access the XML file using a URL like /?altTemplate=YourTemplateAlias - point your Flash file to this URL
Writing/Creating a XML file programicly
Hi guys I have a website that uses flash to display a slide show on the home page, the flash object is powered by an XML file that looks like this > http://pastebin.com/qczmTNL9
Now I want to make it possible for someone to use umbraco to add new pictures to the site, so I have to upload the image, then programaicly updated the XML file with the URL of the new slide.
How can I achive this, what is the best way? Any Ideas Please.
This is an example of the slider in action http://www.templateaccess.com/demos/myweb-cuber/
Hi,
You can use an XSLT Macro to generate the XML file dynamically, then you can access it with an altTemplate.
There is a video that explains the process here: http://umbraco.com/help-and-support/video-tutorials/developing-with-umbraco/rich-internet-applications/loading-umbraco-data-into-flash/TVPlayer
But the basics are:
- Create an XSLT Macro that renders the desired XML. At the top of the macro add: <xsl:value-of select="umbraco.library:ChangeContentType('text/xml')"/>
- Create a blank template and add the macro to it.
- You can now access the XML file using a URL like /?altTemplate=YourTemplateAlias - point your Flash file to this URL
If you need more details let us know...
Tom
Yeah I just watched it, for anyone else that has the same problem, check out the video very clear example of how to load xml data in to falsh...>> http://umbraco.com/help-and-support/video-tutorials/developing-with-umbraco/rich-internet-applications/loading-umbraco-data-into-flash
Happy coding
is working on a reply...