We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 19889
    • 616 Posts
    Was playing around real quick with the modxapi - maybe this is a starting point for the file list using wayfinder:

    <?php
    $path = dirname(__FILE__).'/';
    include_once($path.'modxapi.php');
    
    $modx = new MODxAPI();
    // connect to db and load settings
    $modx->connect();
    $modx->getSettings();
    $html = $modx->runSnippet('Wayfinder', array('startId'=>'0','ignoreHidden'=>'false'));
    echo $html;
    ?>
    


      • 21056
      • 327 Posts
      Don’t know what went wrong with that unicode stuff.

      Using the Modx snippet and wayfinder will be so much neater. It is only the way it is because I adapted the file that was already there!!!

      I think there is a permissions issue that needs to be addressed (and exists currently) -- e.g. we may not want to expose a list of all documents within the site to the world by accessing the tinymce.linklist.php file? I think we need to check if we are logged in to the manager at the top of the file.

      I’ll look at some amended code with all this later...
        Author: ManagerManager plugin - customise your ModX manager interface

        Rckt - web development, Sheffield, UK
        • 6726
        • 7,075 Posts
        I have lost the earlier revision and now 1.0.3 screws the acccented character... any update on this ?

        I have tried to wrap my head around this one but without earlier revs to compare, that’s not easy to figure out...
          .: COO - Commerce Guys - Community Driven Innovation :.


          MODx est l&#39;outil id
          • 6726
          • 7,075 Posts
          Anyone has the earlier version of the file handy ?

          It would be much appreciated !
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id
            • 21056
            • 327 Posts
            I have a copy of 1.0.2, attached.
              Author: ManagerManager plugin - customise your ModX manager interface

              Rckt - web development, Sheffield, UK
              • 6726
              • 7,075 Posts
              Thank you very much I’ll let you know if I figure out how to have 1.0.3 up and running with accented characters...
                .: COO - Commerce Guys - Community Driven Innovation :.


                MODx est l&#39;outil id
                • 6726
                • 7,075 Posts
                Well... it would seem it broke during the 1.0.1 -> 1.0.2 and not 1.0.2 -> 1.0.3

                1.0.2 doesn’t work for me either, probably something to do with the charset addition in 1.0.2.

                Could you be so kind as to post the 1.0.1 version ?
                Thanks !
                  .: COO - Commerce Guys - Community Driven Innovation :.


                  MODx est l&#39;outil id
                  • 21056
                  • 327 Posts
                  sorry, I can’t find a copy of that. If I recall it was only to do with the outputting of the list, so may be quite easy to track down.
                    Author: ManagerManager plugin - customise your ModX manager interface

                    Rckt - web development, Sheffield, UK
                    • 6726
                    • 7,075 Posts
                    Okay I’ll try to figure that out, thanks !
                      .: COO - Commerce Guys - Community Driven Innovation :.


                      MODx est l&#39;outil id
                      • 3638
                      • 21 Posts

                      Davidm I was having the same problems here with accents : there were only the id showing.


                      After a little search, I’ve found that changing line 61 :

                      $breadcrumbs[] = ($p['menutitle'])?htmlentities($p['menutitle'],ENT_QUOTES,$charset):htmlentities($p['pagetitle'],ENT_QUOTES,$charset);

                      to
                      $breadcrumbs[] = ($p['menutitle'])?htmlentities($p['menutitle'],ENT_QUOTES):htmlentities($p['pagetitle'],ENT_QUOTES);


                      resolve my problems (in fact, I’ve deleted the $chrarset infos).

                      I have my MODx site in UTF-8, my MySQL charset encoding in UTF-8, and $charset was ’UTF-8’. I really don’t understand what is going on ...

                      I’m not really at ease with international encoding (and with characters encoding ...). Anyone could explain ?