We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 34162
    • 1 Posts
    Is there an easy way to do a wrap in MODx of other URL?

    Let say I have a forum running on http://localhost/forum but I want that to look like part of MODx.

    So I like to see "Forum" will be list on the navigation menu and when the "Forum" link is click it will show the forum as part of the main MODx site not a completely separate forum site.

    Any tips would be appreciated.

    Thanks
      • 32241
      • 1,495 Posts
      Ehmm...

      Do you want the link in the address bar to be the same one with MODx, or you want the forum to be displayed inside MODx template?

      If you just want a link redirection, then you can use WebLink on MODx, to have forum.html to be directed to forum subfolder for example.
      If you want to display the forum inside MODx template, than you need to cacth the output from the forum and display it inside MODx using snippet or placeholder maybe.

      Btw Chanh, I do realize that you’re looking for the best coupling between community system and content manageemnt system. Is that right?
      I’m interested to help you out, if you want to.

      Sincerely,
        Wendy Novianto
        [font=Verdana]PT DJAMOER Technology Media
        [font=Verdana]Xituz Media
        • 2762
        • 1,198 Posts
        I do not know if I have understood all, but i think you simply need to create a new page, called ’forum’ , then put inside it, a wrapper snippet.
          Free MODx Graphic resources and Templates www.tattoocms.it
          -----------------------------------------------------

          MODx IT  www.modx.it
          -----------------------------------------------------

          bubuna.com - Web & Multimedia Design
          • 34162
          • 1 Posts
          Yes, I want the forum to show inside MODx.

          I know how to create a page but I don’t know how to wrap it inside MODx.

          Basically I just want the forum look like part of MODx not a separate site.

          You can see http://chanh.blogdns.com and when you click on "Forum" link it take you to a total different site outside of MODx.

            • 10487 MODX Staff
            • 1,535 Posts
            Hi chanh,

            If I was doing it, I would create a weblink that points to your forum and then customise your forum template to look like your modx site (rather than the other way round)

            It’s only a suggestion as I’ve not installed a forum on my site yet so can’t give you any first hand experience.

            Hope that helps, Garry
              Garry Nutting
              Senior Developer
              MODX, LLC

              Email: [email protected]
              Twitter: @garryn
              Web: modx.com
              • 2762
              • 1,198 Posts
              If you only need an i frame ( to use in a page called ’forum’) you can use wrapper snippet.
              If you want to import only content of external link you can use a grab snippet.
                Free MODx Graphic resources and Templates www.tattoocms.it
                -----------------------------------------------------

                MODx IT  www.modx.it
                -----------------------------------------------------

                bubuna.com - Web & Multimedia Design
                • 2762
                • 1,198 Posts
                Quote from: garryn at Feb 16, 2006, 05:06 PM

                Hi chanh,

                If I was doing it, I would create a weblink that points to your forum and then customise your forum template to look like your modx site (rather than the other way round)

                It’s only a suggestion as I’ve not installed a forum on my site yet so can’t give you any first hand experience.

                Hope that helps, Garry

                This is another - more clean - solution wink
                  Free MODx Graphic resources and Templates www.tattoocms.it
                  -----------------------------------------------------

                  MODx IT  www.modx.it
                  -----------------------------------------------------

                  bubuna.com - Web & Multimedia Design
                  • 34162
                  • 1 Posts
                  Well, the Wrapper is kinda work, maybe! but the Grab would work if not for this bug

                  : Table ’chanh_zmodx.smf_sessions’ doesn’t exist
                  /home/chanh/public_html/smf/Sources/Load.php
                  1867

                  Doing what garrym suggest would be ok except that it means more template to do and to maintance.

                  Thanks for the suggestions
                    • 2762
                    • 1,198 Posts
                    Oops! i forgot View Port Template Variable - native alternative to wrapper in modx.
                      Free MODx Graphic resources and Templates www.tattoocms.it
                      -----------------------------------------------------

                      MODx IT  www.modx.it
                      -----------------------------------------------------

                      bubuna.com - Web & Multimedia Design
                      • 34162
                      • 1 Posts
                      Where can I find "view port"?

                      Thanks