Search the Community
Showing results for tags 'special characters'.
-
I want to have filters with month names in german. I fetch them from date-fields with strftime('%B', $timestamp); But i'm not able to add them correctly to a wireArray() What's the right way to do that? $ms = wireArray(); $m1 = strftime('%B', 1579643232); // Januar $m2 = strftime('%B', 1583107200); // März $ms->prepend($m1); $ms->prepend($m2); foreach($ms as $name) { echo "$name "; // result: Januar M�rz }
-
I need to sort results by title ascending, and title includes special characters (croatian letters). The problem is that results are sorted but not 100% correct: e.g. $authors = $pages->find("template=author,sort=title"); Cavali Cavilon Čavlović Cesare ... You see intruder (bolded), it looks like sort engine treats letters C and Č as same ones. I'm not sure that this is Processwire related, but maybe API has solution for this kind of behavior? I have UTF-8 page content type .
-
Hi, recently I asked a question regarding the PageNameURL generator. Is it also possible to use the generator within a template to create urls out of field content? I have an array representing a list of names, some of them containing various special characters, i.e.: Tomas Tranströmer José Saramago Kenzaburō Ōe Gabriel García Márquez Halldór Laxness François Mauriac Władysław Reymont Now I'd like to create urls like: /author/wladyslaw-reymont or /author/kenzaburo-oe Is there a PageNameURL generator function I can use to convert the special characters? Thanks a lot! Sarah
- 2 replies
-
- PageNameURL
- template
-
(and 2 more)
Tagged with: