Recently Browsing 0 members
No registered users viewing this page.
First, this is production realestate site, big one. So please, if any chanse to fix this without touching database, it would be great
I have field "pstatus" as a PageReference,
In the tree under Status as children:
sold unavailable paused In the template "property" I have dropdown were I choose: empty (nothing); sold; unavailable or paused. If you do not choose anything, property will have active selling status.
I need help sorting property template in this order: show all empty and than show all sold.
1031 is Status, parent of the sold unavailable and paused.
$status = $pages->get('1031')->children('sort=pstatus'); $selector = "sort=price, pstatus!=$status"; But I got there all except from status. I need to list "sold" too.
I have done a bit of searching, but I can not seem to find an actual answer. I have a list of services as child pages under "Services". I can output the services just fine, but I cant wrap my head around how to group them "alphabetically" like:
Services A - Service "A" 1 - Service "A" 2 - Service "A" 3 B - Service "B" 1 - Service "B" 2 - Service "B" 3 C - Service "C" 1 - Service "C" 2 - Service "C" 3 Has anyone achieved this type of functionality before?
On a site that lists events, I am using a repeater field 'event_time', which contains two Inputfield Time fields 'event_time_start' and 'event_time_end'. Some events take place multiple times, others just once. Here's an example for the data structure:
event1 title: First Event event_time (1): event_time_start: 08:00 event_time_end: 09:00 event2 title: Second Event event_time (1): event_time_start: 08:00 event_time_end: 09:00 event_time (2): event_time_start: 14:00 event_time_end: 18:00 event3 title: Third Event event_time (1): event_time_start: 07:00 event_time_end: 09:30 First, I'd like to generate a list of all events, sorted by event_time_start, with every repeater item added as an actual event (similar to a SQL JOIN clause). The desired output would be:
07:00-09:30 Third Event 08:00-09:00 First Event 08:00-09:00 Second Event 14:00-18:00 Second Event A selector like
$pages->find('template=event,event_time.event_time_start!=,sort=event_time.event_time_start'); would only return each event page once:
07:00-09:30 Third Event 08:00-09:00 First Event 08:00-09:00 Second Event without
14:00-18:00 Second Event Is there a possible alteration of the selector to take all different occurrences into account?
Also I'd like to filter for events taking place in the morning, using a selector like:
$pages->find('template=event,event_time.event_time_start>=06:00,event_time.event_time_start<=12:00,sort=event_time.event_time_start'); However, this would only return each 'event' page, which then contains also the afternoon version of event2.
While I have the impression these are rather simple tasks, I struggle finding a selector-based solution to it. In this example on opening times are some similarities, but it does not deal with multiple occurrences. I'd appreciate your ideas to it.