We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 21191
    • 236 Posts
    This is an auto-generated support/comment thread for AUtoSlides.

    Use this forum to post any comments about this addition or any questions you have regarding its use.

    Brief Description:
    Builds an xml playlist for the JW image rotator from a directory of images or flash files
      ~Shawn Himmelberger
      Check out my MODx Development and MODx Design Company - Himmelberger Design
      • 28033
      • 925 Posts
      BTW, you have an extra ?> in the AutoSlides.txt file.
        My Snippets
        -> PopUpChunk v1.0
        • 6726
        • 7,075 Posts
        Cool I use the player a lot this will come in handy !
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l'outil id
          • 25483
          • 741 Posts
          Big bump shocked (does nobody use this code??)

          How can I use this snippet without making a document to create the xml file? Or how can I use it to dynamicly change the folder he should use to make the xml file from?

          I want to use something like this for a site that has a different xml file for everypage, so I think in need to have something like http://site.ext/slideshow.xml?folder=[*id*]
          So that it will change the path to the folder. How could I arrange this?

          Basicly I want to use a different folder for every document, based on the ID. And then create a image rotator for the specific page. Is AUtoSlides what I need, or is there something else I should use?
            with regards,

            Ronald Lokers
            'Front-end developer' @ h2o Media

            • 13557
            • 6 Posts
            Hi,

            I am new to modx, but not to the jw player. It was great to see your snippet but I had a bit of trouble getting it to work. Probably due to my own lack of understanding, but I thought I’d mention it here in case anyone else has the same problem (ie. is as thick as I am!), or in case I am completely wrong and there is a better way of doing things!

            The problem I had was in accessing the xml file. I set up everything OK and tested that the player was working by feeding it a pre-prepared xml file, so I knew the images were in place, the flash object is working etc.

            I set up a page in modx, used a blank template and inserted a call to the snippet. When I view this page directly (using index.php?id=24) it displayed the xml so I knew it was working) However when I tried to run the player in the page it just didn’t find anything. the reason was that I had copied the example code which had the file param set to "/sitemap.xml" - eventually i realised that i had to change that to say "index.php?id=nn", then it all worked.

            Hope this helps someone!

            Jan
              • 7231
              • 4,205 Posts
              JannieB: thanks for posting you findings. it is sure to help some one wink
              eventually i realised that i had to change that to say "index.php?id=nn"
              Just to note that if you have SEO friendly URLs on you could use the alias rather than the page ID.
                [font=Verdana]Shane Sponagle | [wiki] Snippet Call Anatomy | MODx Developer Blog | [nettuts] Working With a Content Management Framework: MODx

                Something is happening here, but you don't know what it is.
                Do you, Mr. Jones? - [bob dylan]
                • 2623
                • 34 Posts
                Tiny details make the difference =)
                Removing a slashbar from the image url did it for me:

                I had to edit the snippet code from

                print "/".$fn;
                


                to

                print $fn;