We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19036
    • 119 Posts
    Hello !

    I just wanna know if someone tried this application "Frontpage Slideshow" http://www.frontpageslideshow.net/, that is really amazing !

    And if there is a snippet adaptation already done for modx cms ?

    Thanks for you answers.

    Mehdi
      Scuse my english...I'm swiss
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      Uber slideshow system for Joomla!, Mambo and any PHP based site!
      There’s nothing special about this, it’s just a nice javascript-based slideshow that can be used anywhere.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 7231
        • 4,205 Posts
        There was a MODx site highlighted on the forum a while back that had something similar. Believe me if it works on those CMS then it can definitely work on MODx. grin
          [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]
          • 19036
          • 119 Posts
          OK, thanks for your answers.

          I’ve done it, but only for one tempalte, the uncut v2, it’s still not a perfect automatisation (because I’m not a coder), but it’s working like I need.


          Cheers,
          Mehdi
            Scuse my english...I'm swiss
            • 8416
            • 173 Posts
            Hi Medhi,
            Would you mind sharing your snippet?
            Thanks in advance....
              • 12481
              • 9 Posts
              Quote from: mehdi at Aug 03, 2008, 02:20 PM

              OK, thanks for your answers.

              I’ve done it, but only for one tempalte, the uncut v2, it’s still not a perfect automatisation (because I’m not a coder), but it’s working like I need.

              If anybody need a piece of code for it’s snippet, just tell me.

              Cheers,
              Mehdi

              Hi Mehdi,
              Could you send me a copy of your code please?
              If you can, please send it to my email [email protected]

              Thanks a lot
              Hung.
                • 19036
                • 119 Posts
                Hi,

                This is what I modified on data.php

                <?php
                /* --------------------------------------------------------------------------------------------- */
                /* ------------ Your slideshow content for this Frontpage Slideshow 1.7.x instance. ------------ */
                /* --------------------------------------------------------------------------------------------- */
                
                /*
                *** TIP ***
                -----------
                To add more slides to your FPSS slideshow, simple copy/paste and then change per your needs the data blocks marked with "slide elements".
                */
                
                $slides = array(
                // --- Start slide list ---
                
                
                
                				// slide elements
                				array(
                				"slidelink" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-link` &display=1]]",
                					"title" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-titre` &display=1]]",
                					"category" => "",
                					"tagline" => "",
                					"text" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                					"slideimage" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-image`]]"
                				),
                				
                				// slide elements
                				array(
                					"slidelink" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-link` &display=1]]",
                					"title" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-titre` &display=1]]",
                					"category" => "",
                					"tagline" => "",
                					"text" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                					"slideimage" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-image` &display=1]]"
                				),				
                				
                				// slide elements
                				array(
                					"slidelink" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-link` &display=1]]",
                					"title" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-titre` &display=1]]",
                					"category" => "",
                					"tagline" => "",
                					"text" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                					"slideimage" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-image` &display=1]]"
                				),				
                				
                				// slide elements (***TIP***: copy this data block and paste it below itself to add more slides)
                				array(
                					"slidelink" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-link` &display=1]]",
                					"title" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-titre` &display=1]]",
                					"category" => "",
                					"tagline" => "",
                					"text" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                					"slideimage" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-image` &display=1]]"
                				),
                				
                				
                			
                // --- End slide list ---
                );
                
                ?>
                


                tpl-slideshow-titre is a chunk with this code [+title+]
                tpl-slideshow-text is a chunk with this code [+introtext:limit=`150`+]...
                tpl-slideshow-image is a chunk with an image tv call
                tpl-slideshow-link is a chunk with this code [~[+id+]~]

                Hope that will help you.

                Regards,
                Mehdi
                  Scuse my english...I&#39;m swiss
                  • 21054
                  • 78 Posts
                  Hi,

                  I know this is a couple of years later but...

                  How did you get the TV to work in this snippet?

                  i.e. I have the following:

                  [[Ditto? &parents=`79` &tpl=`tpl-imagechunk` &display=1 &start=`’.$counter.’`]]


                  • document 79 is a container holding several documents.
                  • the ’tpl-imagechunk’ chunk is simply: [*header-image*] (but this returns a "placeholder not found" error
                  • I have the Ditto line in a loop that cycles through all the documents within the parent of ID 79 (i.e. it will return the path and file name of the images set up in the [*header-image*] TV of each document)
                  • the [*header-image*] TV is simple text. i.e. /assets/images/image1.jpg

                  I’m using MODx Evo 1.0.4

                  Help appreciated!

                  -clem

                  Quote from: mehdi at Nov 08, 2008, 02:14 AM

                  Hi,

                  This is what I modified on data.php

                  <?php
                  /* --------------------------------------------------------------------------------------------- */
                  /* ------------ Your slideshow content for this Frontpage Slideshow 1.7.x instance. ------------ */
                  /* --------------------------------------------------------------------------------------------- */
                  
                  /*
                  *** TIP ***
                  -----------
                  To add more slides to your FPSS slideshow, simple copy/paste and then change per your needs the data blocks marked with "slide elements".
                  */
                  
                  $slides = array(
                  // --- Start slide list ---
                  
                  
                  
                  				// slide elements
                  				array(
                  				"slidelink" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-link` &display=1]]",
                  					"title" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-titre` &display=1]]",
                  					"category" => "",
                  					"tagline" => "",
                  					"text" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                  					"slideimage" => "[[Ditto? &parents=`1896` &tpl=`tpl-slideshow-image`]]"
                  				),
                  				
                  				// slide elements
                  				array(
                  					"slidelink" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-link` &display=1]]",
                  					"title" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-titre` &display=1]]",
                  					"category" => "",
                  					"tagline" => "",
                  					"text" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                  					"slideimage" => "[[Ditto? &parents=`1897` &tpl=`tpl-slideshow-image` &display=1]]"
                  				),				
                  				
                  				// slide elements
                  				array(
                  					"slidelink" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-link` &display=1]]",
                  					"title" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-titre` &display=1]]",
                  					"category" => "",
                  					"tagline" => "",
                  					"text" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                  					"slideimage" => "[[Ditto? &parents=`1898` &tpl=`tpl-slideshow-image` &display=1]]"
                  				),				
                  				
                  				// slide elements (***TIP***: copy this data block and paste it below itself to add more slides)
                  				array(
                  					"slidelink" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-link` &display=1]]",
                  					"title" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-titre` &display=1]]",
                  					"category" => "",
                  					"tagline" => "",
                  					"text" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-text` &extenders=`summary` &display=1]]",
                  					"slideimage" => "[[Ditto? &parents=`1899` &tpl=`tpl-slideshow-image` &display=1]]"
                  				),
                  				
                  				
                  			
                  // --- End slide list ---
                  );
                  
                  ?>
                  


                  tpl-slideshow-titre is a chunk with this code [+title+]
                  tpl-slideshow-text is a chunk with this code [+introtext:limit=`150`+]...
                  tpl-slideshow-image is a chunk with an image tv call
                  tpl-slideshow-link is a chunk with this code [~[+id+]~]

                  Hope that will help you.

                  Regards,
                  Mehdi
                    • 19036
                    • 119 Posts
                    Hello,

                    I don’t use the same slideshow anymore...but did you try this in your chunk call [+header-image+] ?

                    Hope it helps,

                    Mehdi

                      Scuse my english...I&#39;m swiss
                      • 21054
                      • 78 Posts
                      which one did you end up using?

                      And yes... for some strange blonde moment.. I totally forgot about substituting * with +’s!