Hi, i have a node field (number integer) that increment +1 every time a specific node is viewed by specific role
This is the Rule
- Event: Content is viewed of Type: Example
- Conditions: Path has url alias "node/21" and User has role "Floor2"
- Action: Set data value "node:field-visits-floor-2" and Add offset "1"
It works perfect, increments plus 1 on each visit, but only with default layout, if another layout is activated for this page the increment stop working, i tried removing the conditions and tried with any user and any role but still the problem, the only way to make it to work is with Default Layout
Thanks for help
Recent comments
Just FYI, for field API date fields that use ISO format (basically a string), the resulting expression produced by the date_views_filter_handler_simple handler is DATE_FORMAT(STR_TO_DATE(...
Filter view on date
I think storing as timestamps would be the simplest and best way. Thanks for the help!!
Filter view on date
Yes, what I suspected. The core views filter handler for dates (views_handler_filter_date) can only handle UNIX timestamp sql columns. You'll either need to extend that filter handler to...
Filter view on date
Good call on the devel...it shows the filter on the date field is looking for a unix timestamp. FYI, that value corresponds to yesterday, July 13 WHERE (( (ShowsNotices.ShowDate >=...
Filter view on date
Are you able to do some debugging? Can you output the variables in views_handler_filter_date:op_simple() ? Specifically, I would enable Devel and insert something like dpm($this->...
Filter view on date