We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19180
    • 21 Posts
    I want to create a video gallery that has a lot of the functionality that youtube has but I don’t even know where to start.

    I’m thinking that the video can be inserted through a tv and the description is in the content and I need an additional tv for tags. The hardest part is to have a list to the right of the page that has thumbnails for all videos that have the same tags as the video being displayed.

    Can anyone help me figure this out?
      • 19180
      • 21 Posts
      any help out there?
        • 28042 ☆ A M B ☆
        • 24,524 Posts
        If you’re going to do it that way, use Ditto with tag filtering for your sidebar list.
          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
          • 19180
          • 21 Posts
          I had to rethink my original plan because, quite frankly, it didn’t make sense but now I have another issue. I have a container(video-gallery) that has my documents(video1, video2, etc,) in it.

          I need to put ditto on each Video page with the tag filter but if you click the links from the ditto list it will take you to video-gallery/video-gallery/video1.html instead of video-gallery/video1.html

          Any ideas?
            • 19180
            • 21 Posts
            Seems like it would be a common problem, anyone got a solution?
              • 19180
              • 21 Posts
              Now I’ve tried to add <base href="[(site_url)]" /> to the header of my page which fixed the problem with the default ditto layout but it doesn’t work with my template which is

              <div class="videothumb2">
              <a href="[~[*id*]~]"><img class="fl" src="http://www.mysite/video-galleries/[+id+].jpg" alt="[+longtitle+]" /></a>
              <p class="headline2"><a href="[~[*id*]~]">[+longtitle+]</a></p>
              </div>

              The links only show the current page url.
                • 28042 ☆ A M B ☆
                • 24,524 Posts
                Of course. That’s what [*id*] is, the current page id. Try [+id+] instead.
                  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