We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 4749
    • 623 Posts
    @bunk58:
    OK, Chip Butties...They were delicious!

    @labasus:
    Parse error: syntax error, unexpected T_STRING in /home/etfmark/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 1

    I added the code as you said. Thanks for the input, but getting another error.
      The MODx has you...
      Utah Web Design
      • 16545
      • 358 Posts
      What is your version of PHP, MySQL and MODX ?

      Quote from: cbaone at Jun 12, 2008, 03:58 PM


      @labasus:
      Parse error: syntax error, unexpected T_STRING in /home/etfmark/public_html/manager/includes/document.parser.class.inc.php(769) : eval()’d code on line 1

      I added the code as you said. Thanks for the input, but getting another error.
        • 4749
        • 623 Posts
        PHP 5.2.6
        MySQL 5.0.45
        ModX 0.9.6.1p2
          The MODx has you...
          Utah Web Design
          • 29774
          • 386 Posts
          @cbaone

          looks like the modx parser is choking on the string you have entered for some reason - did you copy and paste the string from a webpage? Could be some dodgy characters in there. Could you try typing it out?
            Snippets: GoogleMap | FileDetails | Related Plugin: SSL
            • 4749
            • 623 Posts
            I tried typing it in too and that didn’t work either.  undecided
            Where is it populating the list from again? I need to look...Is it pagetitle, longtitle, ?
              The MODx has you...
              Utah Web Design
              • 29774
              • 386 Posts
              Your TV looks something like this right?


              And you’ve included the snippet like this?
              <?php
              return include($modx->config['base_path'] . 'assets/snippets/related.php');
              ?>
              


              If so, could you do me a favour? Create a copy of related.php and open the original in a text editor, then replace the code with this:
              <?php
              return 'item==value';
              ?>
              


              Let me know what happens when you edit a page in the manager with this TV.

              Cheers

              Mark
                Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                • 4749
                • 623 Posts
                Mark,
                You’re a very patient man. I made a silly mistake and didn’t include the file correctly. I think I pasted it wrong or something. I looked at it character by character and there was a missing ). What can I say? Thanks for suffering on my behalf. It works as advertised - fantastic! I will now go quietly...at least until I have another problem. grin
                  The MODx has you...
                  Utah Web Design
                  • 29774
                  • 386 Posts
                  @cbaone

                  Thank lordy for that! Thought I was going mental smiley
                    Snippets: GoogleMap | FileDetails | Related Plugin: SSL
                    • 4749
                    • 623 Posts
                    Mark,
                    Thanks for your help on the related snippet. I have one more request... grin

                    How can I dig two levels deep, ignore the containers and get the child documents to build a list? Can I put multiple folders in the parents parameter?

                    EDIT: Yep, I guess you can! It’s working great!
                      The MODx has you...
                      Utah Web Design