We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39827
    • 42 Posts
    Hello. I upgraded some website from 1.0.4 to 1.0.10 and most things seem to work great. But HTML entities codes (the names) are not processed anymore.

    Example:
    I used the registered symbol html entities code (that R in a circle symbol) in the 'menu' name field in the CMS manager like this "contact ®"
    In The HTML source it shows up like this:
    <a href="/contact/" title="Contact">CONTACT &reg ;</a><!-- without the space-->


    I was forced to use the space after the '&reg' because the forum draws the register symbol as it should and thereby screws my example smiley. In my source there is no space after the '&reg'

    Other versions op modx on the same server nicely process the html entities. (1.0.6, 1.0.8, 1.0.4)

    Thnx in advance. If more info is needed just ask.
      • 36635
      • 41 Posts
      Actually I don't think you want the entity replaced, you want it output as-is so it works as html code, right? I have some html in menu titles, like < br >, and also want this output as-is.

      See this post and reverse the code:
      http://tracker.modx.com/issues/3730
        • 33999
        • 2 Posts
        For me, you are right, avibodha. I found today after an upgrade to 1.0.10 this "feature".
        This is now my work-a-round: define a chunk called br with the content
        <br />

        and write in the menu title this:
        line1 {{br}}line2

        and the result will be an line break like in the previous version of MODx

          • 39827
          • 42 Posts
          At first thanks forlooking into my problem and solutions.

          I will upload an image to show into what problem i went when updating my sites to 1.0.10
          I have a website that uses like 200x a html enities code in the menu names. In prior versions of Modx (or wayfinder) the entities code was processed.
          If i update this site i have to manually change like 200 entrys.

          I will show you the effect of 2 types of menu input. (Thought using entities codes was safe for any future usage. Guess it was not...)


          external image: (same) <a href="http://tinypic.com?ref=2rzp1d5" target="_blank"><img src="http://i44.tinypic.com/2rzp1d5.jpg" border="0" alt="Image and video hosting by TinyPic"></a>


            • 33999
            • 2 Posts
            Hello voklee!

            Ok, 200 times is a little bit often.
            I think the easiest way would be to change the core (ggrrr): reverse the changes like avibodha pointed to (see the tracker-ticket)

            Greetings from Berlin
              • 39827
              • 42 Posts
              Thnx again for you quick response.

              The core hack aviboda submited (http://tracker.modx.com/issues/3730) is a very great option for what iam very Thankfull.
              I can now update this site to 1.0.10 again

              Voklee