Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ayo Adesina 445 posts 1059 karma points
    Dec 29, 2011 @ 15:56
    Ayo Adesina
    0

    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/

  • Tom Fulton 2030 posts 4998 karma points c-trib
    Dec 29, 2011 @ 16:15
    Tom Fulton
    1

    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

  • Ayo Adesina 445 posts 1059 karma points
    Dec 29, 2011 @ 16:23
    Ayo Adesina
    0

    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

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies