We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18097
    • 33 Posts
    Hi

    I upgraded to Evolution 1.0.10 and use Wayfinder for the menu.

    Previously, for the Home page I had an image reference in the 'Menu title' of the page which used to show the logo as the home page within the Wayfinder menu.

    Since upgrading this image no longer works and I have had to replace with only text and no longer have the logo on the website.

    Can anyone help me resolve this?

    The website is http://www.johnstrand-mk.co.uk/
      • 10208 ☆ A M B ☆
      • 1,780 Posts
      Unfortunately, since you removed the image from the markup it's not there anymore so it's a little difficult to say what went wrong. If you add it back, but also keep the text, maybe that will help you locate the problem when you inspect the element.
        Frogabog- MODX Websites in Portland Oregon
        "Do yourself a favor and get a copy of "MODX - The Official Guide" by Bob Ray. Read it.
        Having server issues? These guys have MODX Hosting perfected - SkyToaster
        • 35150 ☆ A M B ☆
        • 191 Posts
        A quick hack to make that work: in assets/snippets/wayfinder/wayfinder.inc.php change line 182 from
        $phArray = array($useSub,$useClass,$classNames,$resource['link'],htmlentities($resource['title'], ENT_COMPAT, $charset),htmlentities($resource['linktext'], ENT_COMPAT, $charset),$useId,$resource['alias'],$resource['link_attributes'],$resource['id'],htmlentities($resource['introtext'], ENT_COMPAT, $charset),htmlentities($resource['description'], ENT_COMPAT, $charset),$numChildren);

        to
        $phArray = array($useSub,$useClass,$classNames,$resource['link'],htmlentities($resource['title'], ENT_COMPAT, $charset),$resource['linktext'],$useId,$resource['alias'],$resource['link_attributes'],$resource['id'],htmlentities($resource['introtext'], ENT_COMPAT, $charset),htmlentities($resource['description'], ENT_COMPAT, $charset),$numChildren);
        


        That keeps any special characters in content of the Menu Title field (linktext) from getting encoded with htmlentities(). So <img> won't become &lt;img&gt;
          Extras :: pThumb • Resizer • imageSlim • setPlaceholders
          • 18097
          • 33 Posts
          Hi jgrant

          That worked perfectly. Thank you for that. I have now replaced the text with the logo once more.

          Daniel
            • 18097
            • 33 Posts
            Hi again

            Since upgrading to 1.0.14 this no longer works but I don't quite understand the code enough to change it. Any help would be really pleased.

            http://www.johnstrand-mk.co.uk/
              • 9995
              • 1,613 Posts
              you probably overwrited the wayfinder snippet because of the update.

              do the same trick smiley

              assets/snippets/wayfinder/wayfinder.inc.php change line 182

              You might do it by using the filemanager: Elements > Filemanager
              (not 100% sure its named like that because my manager always is dutch)

              Else you need to use FTP.

                Evolution user, I like the back-end speed and simplicity smiley
                • 18097
                • 33 Posts
                Nope, absolutely no affect. I don't think it was updated on the upgrade. I'm assuming that something changed on the upgrade which stopped the fix working?

                Would love some advice.
                  • 13428 ☆ A M B ☆
                  • 1,031 Posts
                  Set the Wayfinder parameter &entityEncode=`0`. Some chars could break the tags in the output so entity encoding is active by default since MODX Evolution 1.0.10.
                    • 18097
                    • 33 Posts
                    That's perfect. That did the trick. Thank you so much.