We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    First off I would like to thank"Mark" & "Breezer" for their help in my last post, didnt expect such a fast response and especially one that worked straight away.

    My new problem is:
    I would like to apply a link structure to gallery pages.
    These pages are not found in the main menu.
    An example of the structure that im looking for is similiar to that found in this forum.
    At the bottom of the page next to the "Go Up" link is a navi, which I would like to implement into the site that im building. eg. Pages: 1 | 2 | 3 | 4

    I think its something similiar to the "PrevNext" snippet.

    If there is anyone out there that can help me out, it would be appreciated.

    Thanx for your help smiley
      • 17883
      • 1,039 Posts
      How about displaying the gallerypages with ditto and enabled paging?
        • 34162
        • 1 Posts
        Thats a good question, which I dont have an answer to.

        Im new to MODx and would like to walk before I run.

        At the moment the site works well with everything ive been able to find here in the forum and on the main site.

        This is my last problem and I havent even started to look at Ditto yet.

        If there is an easy way to do this navi system with help of a small snippet then that would do me fine until im an advanced user of MODx.

        Thanx for your reply.
          • 17883
          • 1,039 Posts
          Okay, first of all we need more about theses "gallery pages". How are they structured and how do they look like?

          In principal you could use ditto to display one document per page and enabled paging. This means for example: You have a folder called "galleries" where your gallery documents are in.

          galleries

          -gallery1
          -gallery2
          -gallery3

          and so on.

          Now you set a page with a ditto call like:

          [!Ditto?startID=`the_id_of_the_gallery_folder` &summarize=`1` &tpl=`your_template_for_page` &displayArchive=`0` &paginate=`1` !]


          So one document is shown per page and paging is enabled. You just have to set the ID of your gallery folder and a chunk for the ditto template. In your case it would be enough (for example):

          <h2>[+pagetitle+]</h2>
          [+content+]

          This chunk is called via &tpl and so displays the header + the content of the pages.

          edit: Look here for ditto parameters: http://modxcms.com/ditto_parameters.html
            • 34017
            • 898 Posts
            That’s a very good tutorial.

            Thanks,
            Chuck

            (These will be good for the upcoming wiki)
              Chuck the Trukk
              ProWebscape.com :: Nashville-WebDesign.com
              - - - - - - - -
              What are TV's? Here's some info below.
              http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
              http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
              • 34162
              • 1 Posts
              Thats is all nice to know and I will come back to this as soon as I have researched Ditto.
              But as I have already commented, I would like to walk before I run.

              At the moment Ditto is not the solution that im looking for.

              I appreciate your time and help, but if there is an easier solution at the mo, I would prefer that.

              If theres no other solution then ill handcode until im upto speed with the system and the majority of its functions.

              Many Thanx
                • 17883
                • 1,039 Posts
                I appreciate your time and help, but if there is an easier solution at the mo, I would prefer that.

                As I said....

                Okay, first of all we need more about theses "gallery pages". How are they structured and how do they look like?

                Without knowing that it´s difficult to help wink
                • Do you have a link so we can see what you are trying to do?
                    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
                    • 34162
                    • 1 Posts
                    Cheers for the response.

                    Up till now I havent placed a link as so far as I understand links are not allowed in here.

                    The gallery itself is a unordered list controlled by CSS.

                    The navigation through the gallery pages is controlled via the navi at the top (Gallery Page(s): 1 | 2 | 3 | 4 | 5 | 6 | 7).
                    This navi also uses an unordered list.

                    The site is a private site (my sister) and isnt finished yet (back-browser issues). At the moment I am transfering it to a uk domain.
                    Bringing it into MODx hasnt been hard as I handcoded it originally using standard conform coding.

                    Thats the reason I like MODx so much, due to the code output and the ease of use,

                    Hope this helps you out.

                    Once again, I appreciate all help.

                    Thanx
                    • Quote from: gsx750r at Aug 05, 2006, 10:58 AM

                      Up till now I havent placed a link as so far as I understand links are not allowed in here.

                      Whatever gave you that idea? grin The only links not allowed here are spam! tongue

                      So, just use DropMenu with a single level, starting with the parent folder of your galleries, and style the list as you please. It generates an unordered list. Use whatever field (pagetitle, menutitle, etc) you please as the menu text. Usually it’s menutitle, and you set the docuement’s menutitle to be whatever you want.

                      Seems to me you should be using MaxiGallery, which does this anyway.
                        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