We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 11429
    • 90 Posts
    Attempting to use poMMo and it uses a php include to embed in web page, the php example did not work, I tried to make it a snippet then called the snippet but that didn’t work either.

    include(’/path to/pommo/embed.miniform.php’);
      • 4041
      • 788 Posts
      Try this one once and see if it helps, has worked fine for me since I found it...

      copy this and make it a snippet:

      # Snippet to include files from filesystem
      # [[includefile? &file=`assets/templates/mytemplate/file.html`]]
       
      if ( !isset($file) || $file== "" ) return "No file specified."; //check if there's a file given.
       
      //Start the buffer
      ob_start();
       
      //include
      include $file;
       
      //get contents from the buffer
      $ob_contents = ob_get_contents();
       
      //and kill/delete the buffer
      ob_end_clean();
       
      //return it to MODx
      return $ob_contents;

        xforum
        http://frsbuilders.net (under construction) forum for evolution