First off, thanks for writing a useful plugin with nice looking output.
I am transitioning our calendar feeds from rss to ics. We are using Master Calendar, and in the description field, we will use tags for certain events. When displaying rss feeds we can filter by the tags.
Is it possible to place an ical feed on a page, but filter the list by specific tags in the description field?
Here is an example from one of our .ics files:
DESCRIPTION:Red Sari is a fair trade, woman-owned company that works with women artisans in Kathmandu, Nepal, who create beautiful, vibrant scarves, handbags, and other accessories through a process of fusing wool fibers with tissue silk vintage saris. Each piece is hand-made and unique, and their sale benefits the Nepali artisans by providing them an opportunity to use their skills and earn a living wage. Free, no registration required.\n\ntags: adulpr, specfd\n\n\nEvent Url \n
Easiest would be if whatever is producing the ics feed would use the ics rfc 5545 standard field ‘categories’ for those tags, because you could then add the filtering easily:
If that is not possible, the next best option would be to write an addon using a filter or pluggable function http://icalevents.com/documentation/filters-and-pluggable-functions/ to create tag fields – maybe using the wordpress tag taxonomy concept? for the events.
Then you could add whatever filter html you wanted to filter by tag.
(Or use amr-events instead – gives you the power of wordpress taxonomies to select slice/dice your events any way you want!)
http://icalevents.com/ If your calendar feeds are wordpress post based – it would be super duper easy using amr-events to treat those posts as events and instantly have an ics feed.)
- The topic ‘Filter based on keyword’ is closed to new replies.