Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » [SOLVED] Tagcloud: Umlaute / Special Characters

Discuss the Blog Module.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1187 Views
  • derralf
    Avatar
    Community Member
    24 Posts

    [SOLVED] Tagcloud: Umlaute / Special Characters Link to this post

    The tag cloud widget wouldn't display my special characters (German Umlauts such as ä,ö,ü) though all templates are utf-8.
    To fix this, go to /blog/code/widgets/TagCloudWidget.php and in Line 56:

    replace:
    $theseTags = split(" *, *", strtolower(trim($entry->Tags)));
    with
    $theseTags = split(" *, *", mb_strtolower(trim($entry->Tags)));

    Aside from the tagcloud widget there was yet another function/module/place where i had to replace strtolower recently. But i forgot. Maybe it was a custom limitCharacters function. Anyway. Maybe it's a hint for resolving garbled umlauts that appear on other places.

  • vr
    Avatar
    Community Member
    9 Posts

    Re: [SOLVED] Tagcloud: Umlaute / Special Characters Link to this post

    Thanks Ralf, you made my day ;-)

    cheers, vr

  • Willr
    Avatar
    Forum Moderator
    5497 Posts

    Re: [SOLVED] Tagcloud: Umlaute / Special Characters Link to this post

    derralf good note - this should probably be changed in the module so if it hasn't been raised yet make a ticket on open.silverstripe.org for the blog module.

    1187 Views
Page: 1
Go to Top

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

Comments on this website? Please give feedback.