We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 20349 ☆ A M B ☆
    • 453 Posts
    When I input some title that contains characters "š" and "ž", it stripes them down completely from document alias

    How can I work this out to show me those letter, ex. s for š, and z for z

    Currentt example:
    Title: some title with šcharacter
    Document alias: some-title-with-character

    What I want:
    Title: some title with šcharacter
    Document alias: some-title-with-scharacter
      BASE - Web Design Studio
      MODX Ambassador

      Website
      • 5727
      • 160 Posts
      Hello,

      the transliteration was indeed removed in 0.9.6.3 and the original idea was to put back the functionality in a plug-in. Unfortunately, I completely forgot to submit the plug-in to the repository so that it could be reviewed and then included in the core (if needed).

      I’m going to upload the plug-in right now, and provide a link in a short moment.

      Edit : You can download the plug-in here Please report any bugs and feel free to comment in the support thread

      Sorry for the inconvenience!
        Olivier Deland
        Montreal, Canada - Web Developer
        • 20349 ☆ A M B ☆
        • 453 Posts
        All I have to do is install this plugin and everything should be ok?
          BASE - Web Design Studio
          MODX Ambassador

          Website
          • 5727
          • 160 Posts
          Edit !

          Ok, it seems that I was completely wrong!! The OnStripAlias event never made it in 0.9.6.3. So this plug-in won’t work for you, I’m sorry!

          In order to achieve what you want, you will have to hack the core files. Here’s a brief how-to, use at your own risk

          • Download the file /manager/processors/save_content.processor.php somewhere on your computer and make a back-up copy in case you messed up later
          • Open it with your favorite text editor. Your text editor must support UTF-8 text encoding or it will screw up your file.
          • Scroll down to around line 675 where you should see something that looks like this:
          	// Convert accented characters to their non-accented counterparts. Idea originally from Brett Florio (thanks!) ... expanded list from Textpattern (double-thanks!)
          	static $replace_array = array('&' => 'and','\'' => '','À' => 'A','À' => 'A','Á' => 'A','Á' => 'A','Â' => 'A',



          • Now you will need to add an entry for every character that is disappearing from your alias, in your case, it would look like this after the change:
          static $replace_array = array('ž' => 'z','š' => 's','&' => 'and','\'' => '','À' => 'A','À' => 'A','Á' => 'A','Á' => 'A','Â' => 'A',


          • Save this and upload it to your website, replacing the old file (or rename the old one first to make a quick backup)

          That’s it! Hopefully that will work for you.
            Olivier Deland
            Montreal, Canada - Web Developer
            • 20349 ☆ A M B ☆
            • 453 Posts
            Thanks a lot!

            Simple hack but made wonders wink
              BASE - Web Design Studio
              MODX Ambassador

              Website
              • 25663 MODX Staff
              • 12,272 Posts
              Quote from: ConseilsWeb at Jan 23, 2009, 03:31 PM

              Edit !

              Ok, it seems that I was completely wrong!! The OnStripAlias event never made it in 0.9.6.3. So this plug-in won’t work for you, I’m sorry!

              It would be really great if you would stay on top of us and make sure we get this in for Evo 1.0 release. Thanks! (means file a report with a patch, etc.) tongue
                Ryan Thrash, MODX Co-Founder
                Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me