We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 23643
    • 15 Posts
    hallo all,

    how to call Content of one page into another page by page ID,
    exc...

    I have one page name contact, and I will call content in that page into another page...

      • 6726
      • 7,075 Posts
      Well, as usual there are many ways to do it but one way would be using the GetField snippet this way :

      [tt][!GetField? &docid=`5` &field=`content`!][/tt]

      You can get any TV for any document with getfield you could have used :
      [tt][!GetField? &docid=`5` &field=`alias`!]
      [!GetField? &docid=`8` &field=`pagetitle`!]
      or [!GetField? &docid=`13` &field=`my_template_variable`!][/tt]

      This being said, it would seem that it’s not necessarily what you need to do here, contrary to what your title implies.
      It would seem you want to re-use content rather than call content from one page to another.

      In you case, if you need to re-use the contact form, just place the form in a chunk and then insert that same chunk everywhere you need it smiley
      Every time you edit the chunk all the pages including it will be updated.
        .: COO - Commerce Guys - Community Driven Innovation :.


        MODx est l'outil id
        • 10720
        • 26 Posts
        or use the DynContent snippet
        http://modxcms.com/extras/package/115
          • 3749
          • 24,544 Posts
          Quote from: poetra-one at Sep 03, 2008, 10:10 PM

          hallo all,

          how to call Content of one page into another page by page ID,
          exc...

          I have one page name contact, and I will call content in that page into another page...

          You could also use a snippet like eForm or SPForm for the contact form and just put a snippet call on each page where you want the form.
            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