We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • The BkupMODx module works fine in stand-alone mode (in its config file, mysql = 2 and give it the database access details; see its INSTALL.txt file for a full explanation of how to use it).
      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
      • 22537
      • 78 Posts
      Thank you Susan. I saved the info to test it out later....

      --

      How would I duplicate for instance a css file located in the assets -> templates -> name of site folder -> css
      Do I need to copy the code go to my desktop and create another css file which I then upload?

      • My FTP client has a feature to duplicate files, although behind the scenes it does download the original, rename it, and upload it as the new file.
          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
          • 22537
          • 78 Posts
          I was wondering if the Modx manager could duplicate the files?

          Btw
          Since the Clairity pack messed up my system (I’ll reinstall Modx it when another version comes out) the default page sunwindproduction.com/modx is not coming up (its gone). How can I define a new default first page? How to I change the ID’s of the pages?

          Thanks!...:)

          Have a great day!!
            • 29076
            • 615 Posts
            Quote from: Paal_Joachim at Oct 14, 2010, 12:59 PM

            How can I define a new default first page? How to I change the ID’s of the pages?
            Goto System - System settings, page four, Area: Site - Site start. Double click on 1 or whatever is set as site-start-ID and change the ID to the document that is to be the site start page.
            The ID of the pages can’t be changed. It is index-IDs in the database.
              I think, thererfor I am! But what I am, and why...?
              • 22537
              • 78 Posts
              Great!

              I see many things I would like to change there!

              Thank you!

              Takker og bukker....:)
                • 22537
                • 78 Posts
                I need a good and simple way to use fancy box (jquery) or some other popup box to use images and/or video with Revo.
                Easy is the essential word.
                Anyone got any tips for this?

                Thank you...:)

                • Flowplayer is my favorite. You have to pay for custom branding on the video player, but in my opinion it’s well worth the price they ask. The free version works the same; it just has Flowplayer branding at start-up.
                    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
                    • 22537
                    • 78 Posts
                    How would I go about using Flowplayer with Modx?

                    Have a great day!
                    • The same way you would on any HTML page. MODx doesn’t care what javascript you use.

                      You can use snippets, TVs and chunks to automate the loading of the playlist items.

                      For example, on one site I needed a different video played in the sidebar for each page. I had a radio-button TV for the user to select from the available videos for each resource (this could also be a file upload type TV and work in much the same way), then in the sidebar I have this chunk, which is pretty much a standard Flowplayer setup:
                      <div id="rightFlash">
                      <!-- this A tag is where your Flowplayer will be placed. it can be anywhere -->
                      <a  href="assets/flash/videos/pages/[*PageVideos*].flv"  id="player"> </a> 
                      <!-- this will install flowplayer inside previous A- tag. -->
                      <script type="text/javascript" src="assets/js/rightmovie.js"></script>
                      </div>

                      Then I wrote a snippet to check for valid .flv files and load the above chunk if the file is OK, and load a default image in case there is no valid .flv file:
                      <?php
                      $movie = $modx->getTemplateVar('PageVideos');
                      if (!empty($movie['value'])) {
                          if(is_file('assets/flash/videos/pages/' . $movie['value'] . '.flv')) {
                               $chunk = $modx->getChunk('rightflash');
                               return $chunk;
                          }
                      }
                      $output = '<img id="noVideo" src="assets/js/images/flash_bkg.png" width="250" height="261" alt="" />';
                      return $output;
                      ?>

                      The included javascript file to configure the player and run it is basically what the Flowplayer demos have:
                      flowplayer("player", "assets/flash/flowplayer.commercial-3.1.5.swf", {
                          key: 'xxxxxxxxxxxxxxx',
                          logo: {
                              url: '../js/images/flash_bkg.png',
                              fullscreenOnly: false,
                              zIndex:0,
                              top: '45%',
                              left: '50%'
                          },
                          splash: {
                              backgroundColor: '#ffffff'
                          },
                          canvas: {
                              backgroundColor: '#ffffff'
                          },
                              screen: {
                              backgroundColor: '#ffffff'
                          },
                          
                          clip: {
                      
                              autoPlay: true, autoBuffering: true,
                      
                              // let screen fade in gradually so Acme logo can be seen below it
                              fadeInSpeed: 3000,
                      
                              // on last second, fade out screen
                              onLastSecond: function() {
                                  this.getScreen().animate({opacity: 0}, 3000);
                              },
                      
                              // if screen is hidden, show it upon startup
                              onStart: function() {
                                  this.getScreen().css({opacity: 1});
                              }
                      
                          },
                      
                          plugins:  { 
                                  controls: {
                                          autoHide: 'true',
                                          hideDelay: 1000,
                                  }
                          }
                      });

                      For a gallery playlist, you can use a snippet to scan a directory and generate the appropriately formatted list of videos for Flowplayer to work with; you would embed the snippet in the spot where normally the playlist would be in the javascript, which in this case would be inline rather than loaded from an external file so the snippet can do its thing.

                        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