if-not-location
-
I very much appreciate the effort that is going in to getting this plugin fully functional again ! I’m wondering if there is a solution to this little problem.
When displaying a gcal feed as a widget, I prefer to keep the display as brief as possible, and only display the date, event title and the location. Normally that works very well, as most events have a location – so I like to have the map link displayed too.
So here’s the event builder code (with some important blank lines removed)[if-not-all-day][start-time]
[/if-not-all-day]
[event-title]
[if-location]
[location] [maps-link newwindow=”true”]Map[/maps-link]
[/if-location]However, a few of our events do not have a location – they are just markers in the diary. For these, I do not wish to have the map link.
One solution occurred to me. If I could not fill anything in on Google Calendar for the location and then trap the events in the Gcal feed, that do not have a location, I could display the description instead. But for that, I would need an [else] command or a [if-not-location] command.
Failing all of that, I’ll just set the location to be the middle of the Atlantic. No-one will go there by mistake.
The topic ‘if-not-location’ is closed to new replies.