• pagename field in the content document does not exclude non-english characters...

    By Serdar Basegmez 2 decades ago

    pagename field which creates a reasonable short name for a blog entry excludes some characters (like '', '/', etc.) not eligible for url construction.



    My blog is in Turkish and some Turkish characters are not being excluded; results in a messy url.



    The input translation formula of pagename field (in CONTENT NOTES form) is



    @ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(pagename;"?":"&":"@":"£":"$":"%":"^":"<":">":"
    ":"/":"'":"#":"~":"(":")":"+":"=":"!":";":"\"":":":",":"|":"\";"");"–":" - ":" ";"-");" - ":"–":"—";"-")



    I changed the computed formula as;



    @ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(@ReplaceSubstring(pagename;"?":"&":"@":"£":"$":"%":"^":"<":">":"*":"/":"'":"#":"~":"(":")":"+":"=":"!":";":"\"":":":",":"|":"\";"");"–":" - ":" ";"-");" - ":"–":"—";"-"); "Ö":"ö":"Ç":"ç":"Ş":"ş":"İ":"ı":"Ğ":"ğ":"Ü":"ü";"O":"o":"C":"c":"S":"s":"I":"i":"G":"g":"U":"u")



    I only added turkish characters. The more characters can be added through a shared field or configuration document.