We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15716
    • 57 Posts
    Is there something out there that will let me load the content of one page on another page? So instead of saying [*content*] in the body of the html, i want to say something like [*page1_content*] and have it load the content on page1 instead of the content on the current page...

    Any help would be awesome.

    CHEERS!
      • 727
      • 502 Posts
      Use a template variable and the @DOCUMENT binding.

      Andy
        • 15716
        • 57 Posts
        worked like a charm ganeshXL, you da man!
          • 11975
          • 2,542 Posts
          You could use Ditto as well with &documents param

          :-)
            Made with MODx : [url=http://www.copadel.com]copadel, fruits et l
            • 3749
            • 24,544 Posts
            Quote from: Kev at Aug 22, 2007, 07:30 PM

            Is there something out there that will let me load the content of one page on another page? So instead of saying [*content*] in the body of the html, i want to say something like [*page1_content*] and have it load the content on page1 instead of the content on the current page...

            Any help would be awesome.

            CHEERS!

            You probably have a good reason for doing it that way but, if not, the easiest way to include the same content on multiple pages is to create a chunk to hold the content and include the chunk wherever you want it by inserting {{chunkName}} where you want it to appear.

            Bob
              Did I help you? Buy me a beer
              Get my Book: MODX:The Official Guide
              MODX info for everyone: http://bobsguides.com/modx.html
              My MODX Extras
              Bob's Guides is now hosted at A2 MODX Hosting
              • 727
              • 502 Posts
              So many ways to skin this cat - one of the great things about MODx; it’s flexibility.

              Andy
                • 7231
                • 4,205 Posts
                Quote from: BobRay at Aug 31, 2007, 12:25 PM

                Quote from: Kev at Aug 22, 2007, 07:30 PM

                Is there something out there that will let me load the content of one page on another page? So instead of saying [*content*] in the body of the html, i want to say something like [*page1_content*] and have it load the content on page1 instead of the content on the current page...

                Any help would be awesome.

                CHEERS!

                You probably have a good reason for doing it that way but, if not, the easiest way to include the same content on multiple pages is to create a chunk to hold the content and include the chunk wherever you want it by inserting {{chunkName}} where you want it to appear.

                Bob


                Can chunks be edited with quickedit?
                  [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]
                  • 727
                  • 502 Posts
                  Yes, they can with a hack. Look for one of my earliest postings - it was on that exact subject. That was with 0.9.2.1 but it might still work with 0.9.6.

                  Andy