Jump to content


seddass

Member Since 01 Mar 2011
Offline Last Active Today, 03:31 PM
-----

Topics I've Started

Selector ">=" in PW2.3 doesn't work as in 2.2.x

11 February 2013 - 02:50 PM

I will post it here hoping that it is my mistake and it shouldn't be reported as PW issue. 
 
I have pages with field "event_datetime" with value similar to:
2013-02-09 19:00
2013-02-10 11:00
2013-02-12 19:00
2013-02-14 19:00
2013-02-15 19:00
2013-02-16 11:00
 
and code 
$today = "2013-02-11 21:34";
$rows = $events->find("event_datetime>=$today, limit=3");
in PW2.2.x 
echo count($rows) will output: 3
 
in PW2.3 
count($rows) is 0
 
Is it related to the new changes in the Selectors or I have to use another way to do it properly? 
Thanks in advance.

Not (a-z) chars support in PageAutocomplete or in "Add New" Page inputfield

26 May 2012 - 12:51 PM

Hi all,

I am trying to create a tags functionality for hotel features, like "pool, sauna, etc", and the new tags to be created automatically when entered for the first time. The specific is that tags titles should to be with cyrillic characters.

I was hoping that PageAutocomplete will be ideal for tags system, but it doesn't support searching with cyrillic chars on keypress

Unfortunately "Create new" feature in Page input field doesn't support saving the items with cyrillic characters in their title, because it cant replace them automatically to their (a-z) equivalents for the "name" field.

1. Is there an easy way to use the PageName character replacement feature when using "Create new" in Page input field? Dont you think it will be great if sanitizer->name support such replacement internally?

2. And something related.. Someday I will ask if PW will support not (a-z) characters in URLs. I know that there are standarts and the cyrillic chars are not included in allowed chars. However... when searching for something in cyrillic, many of the Google results contain cyr characters in their URL. Probably we should to be competitive in SEO point of view and to be allowed to use the not a-z characters in the URL? The same for other specific chars in German and other languages. What do you think?

Thanks