We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    I see that if the CMP returns HTML, tags in it are not processed. Is this a permanent condition or is there a plan to process tags in that situation?

    If you put a link in the HTML, following the link takes you out of the Manager to a full-screen view of the new page. Is there an easy way of having the page content displayed in the right panel or the Manager? I’m thinking of something like a multi-page help system and wondering how it could be implemented as a CMP in the right panel.
      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
      • 28215
      • 4,149 Posts
      Quote from: BobRay at Mar 11, 2010, 10:46 PM

      I see that if the CMP returns HTML, tags in it are not processed. Is this a permanent condition or is there a plan to process tags in that situation?
      Process tags? You mean Snippets,TVs, etc? No, not in CMPs.


      If you put a link in the HTML, following the link takes you out of the Manager to a full-screen view of the new page. Is there an easy way of having the page content displayed in the right panel or the Manager? I’m thinking of something like a multi-page help system and wondering how it could be implemented as a CMP in the right panel.
      You’ll need to develop your own controller navigation system (a few existing CMPs do this already), preserving the ?a= parameter to tell the mgr what action you’re on. Or, alternatively, you can package more than one action, but this might not be the easiest path.
        shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
        • 3749
        • 24,544 Posts
        Got it, thanks.

        For future reference:

        link:

        <a href="[[++manager_path]]?a=74&page=2">Page 2 >></a>


        Where 74 is the ID of the component’s action (visible in System | Actions).

        in index.php:

        switch($_GET['page']) { // get page to show from URL
            case '2':
                $output = $modx->getChunk('Page2');
                break;
            default: // default to page 1
               $output = $modx->getChunk('Page1');
        }
        
        return $output;
        
          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