Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

762 Posts in 243 Topics by 250 members

Form Questions

SilverStripe Forums » Form Questions » SearchForm - Ä, Ö and other chars...

Page: 1
Go to End
Author Topic: SearchForm - Ä, Ö and other chars... 603 Views
  • pixelwave
    avatar
    Community Member
    18 posts

    SearchForm - Ä, Ö and other chars... Link to this post

    Hi,

    i updated to SilverStripe 2.3.1. und added the searchForm Script. But when i type in letters like "ä", "ö" and also "Č" and stuff like this - only works in Headlines ... the main text will not be searched.

    www.jahrbuch-bruecken.com

    Any ideas? Please would be very importand... it must have something to do with the chars allowed - but strangly headlines work (for example when i search for "Ankündigungen" it works... when i search for "Höhne" it does not...because "Höhne" appears only in the text)

  • pixelwave
    avatar
    Community Member
    18 posts

    Re: SearchForm - Ä, Ö and other chars... Link to this post

    nobody an idea? ... it's pretty important...

  • Ingo
    avatar
    Administrator
    596 posts

    Re: SearchForm - Ä, Ö and other chars... Link to this post

    TinyMCE converts common unicode characters which can be represented in HTML entities, amongst them all umlauts. So when saving anything through TinyMCE to the database, you'll get "ä" instead of "ä". There's a pretty simple patch if you want to mess with your installation: http://open.silverstripe.com/ticket/3582 - this of course only works for newly saved (or re-saved) content, you'd have to run a search/replace through your existing records to clean up all HTML entities.

    I'm not sure if this patch is fit for core, we'll discuss this for the 2.4 release at earliest. The alternative is basically using the same TinyMCE logic to transform search queries to HTML entities as well, which would be more backwards compatible.

  • pixelwave
    avatar
    Community Member
    18 posts

    Re: SearchForm - Ä, Ö and other chars... Link to this post

    yeah thanks ingo... this actually solved my problem - I found this post myself few days ago. and had to republish all content pages. hope this will fixed in 2.4 - in the same way. (please include this patch, so i don't have to do i different again .. ;)

    thank you for reply.

    603 Views
Page: 1
Go to Top

Currently Online: Euphemismus, freenet

Welcome to our latest member: fearofbuttons

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.