Custom Page List - Filter by attribute (multiple pages / one-to-many-relation)
Permalink
Hey c5 folks!
I'm looking for an easy way to use a page list (self-coded - with api methods:http://www.concrete5.org/documentation/developers/pages/searching-a... to achieve the following:
We want to implement a small city night guide for a specific one-day-event, so we have multiple bus routes with multiple bus stops. Every route and every stop will have their own page.
Example:
- homepage
--routes
---route 1
---route2
--stops
---stop 1
---stop2
..
Now the problem:
One bus stop can be related to multiple routes.
Example:
bus stop 1 - route 1, route 7
bus stop 2 - route 1
bus stop 3 - route 3, route 7
Which attribute should I use to store this efficently for the page list searching? Has anybody else implemented something similiar before?
(Use case -> page for "route 7" should show all stops related to it)
Thanks in advance for inspiration & help!
Best regards,
Matthias
I'm looking for an easy way to use a page list (self-coded - with api methods:http://www.concrete5.org/documentation/developers/pages/searching-a... to achieve the following:
We want to implement a small city night guide for a specific one-day-event, so we have multiple bus routes with multiple bus stops. Every route and every stop will have their own page.
Example:
- homepage
--routes
---route 1
---route2
--stops
---stop 1
---stop2
..
Now the problem:
One bus stop can be related to multiple routes.
Example:
bus stop 1 - route 1, route 7
bus stop 2 - route 1
bus stop 3 - route 3, route 7
Which attribute should I use to store this efficently for the page list searching? Has anybody else implemented something similiar before?
(Use case -> page for "route 7" should show all stops related to it)
Thanks in advance for inspiration & help!
Best regards,
Matthias
So your page structure would be like this: