Hi, this is my most dream module, but if i want use it in czech websites, i have Latin extended characters and big characters in body classes - it is not valid and i cant use it in css. For example taxonomy-Žáby-v-mlíku here http://sarden.cz/2016-03-06-0034/navod-zelva-zaby-v-mliku-3.

Comments

petrsimcik created an issue. See original summary.

sami vakkuri’s picture

Version: 7.x-1.0 » 7.x-1.1
Status: Active » Needs review

Hi,

I found solution. -I don't know how to make patches or something like that, but this works:

Edit row 125 from file (/sites/all/modules/)bodyclasses/bodyclasses.module from

return $variables['user']->roles;

to

return preg_replace('/[^A-Za-z0-9_]/', '-', $variables['user']->roles);

Basically this does same thing for user role names as views' name below, so every "not CSS qualified" character will be replaced with "-"

I think that module developer might want to add this small modification for next update since this edit is kind of dirty :D