Hi
I am trying to resolve a requirement for a client and just wondering if you had any suggestion.
We have a directory of events. Users add events via fron end forms, we have various taxonomies like genre and once published They display in either a post archive or a separate view which displays the various events in a lst, we can filter at the top by genre or event type
And the location field of each event is displayed a s map marker at the top of the page. The archive currently just show those events in that paginated list (as is the same view) so it will show the locations of event 1-10 then 11-20 an so forth
We have a serate view which shows all events on the map on a different page.
We have a new requirement. Some of the events are happening in places that are either private or not open to the public so whilst we wanty their event to be listed we do not want to show their location on the map. However we capture the location as part of the event listings as we need the information.
So the logical thing to me seems to have a check box when adding an event - ie "is this a private event yes or no"
The events listing itself is easy and I assume I just conditionally hide the location map on the single event page for those events marked as private.
However I want a map view - which i assume is a custom search which
1) Displays all events that are NOT marked private
2)The user can filter the map by say genre or county
3)And geo locate so search within 10km of the user location
In my 'content selection' on my view I have the opportunity to select 'events' and then appy front end filters .
But just not sure how I can in effect have a content selection of 'events minus private events- and then apply the front end filter.
Does this make sense or am I thinking about this the wrong way?
I was thinking about work around which may work - ie
- could I parse a value or a class to the map marker for any private event and then 'display:none' or something like that (not very smooth)
- could I parse and alternative location for all private events' for example we could create a mythical location called 'Private' and then show all private events on the map in this one place - such as in the sea of something
Any ideas would be appreciated