Skip to main content

Test Feed

This is what I get when I choose the next 7 days and health/wellness for my feed, while not hiding recurring events. Feed URL is:

https://events.stanford.edu/calendar.xml?event_types%5B%5D=37093217343447&experience=

Same settings below, with recurring events hidden. Feed URL is:

https://events.stanford.edu/calendar.xml?card_size=small&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

Here I’ve chosen just today, health/wellness, recurring events not hidden. URL is:

https://events.stanford.edu/calendar/day?card_size=small&order=date&days=1&experience=&event_types%5B%5D=37093217343447

And this is today, health/wellness, recurring events hidden.

https://events.stanford.edu/calendar.xml?card_size=small&days=1&event_types%5B%5D=37093217343447&experience=&hide_recurring=1

I used the search tool to find health/wellness, filtered those results to the next seven days, and built this feed. Note that the URL includes start-date=2021-12-09 which is certainly not what I want. This example is with recurring events turned on:

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&start_date=2021-12-09

Here I’m hiding recurring events. I chose the next seven days, which the URL shows, but it still includes today’s date. Why am I seeing events four to six months from now?

https://events.stanford.edu/search/events.xml?days=7&event_types%5B%5D=37093217343447&experience=&hide_recurring=1&start_date=2021-12-09
  • The holiday season is supposed to be a joyful time, but along with celebrations and gatherings, the holidays can also bring nostalgia, stress, and a sense of isolation. Often, this is because we feel torn or guilty about some aspects of the holiday season – not being with our loved ones due to work or […]
  • Join BeWell for A Call to Compassion, December 6 to 10, a week-long event where experts across diverse disciplines shed insight on how compassion can transform your well-being, relationships, pursuit of meaning and inner peace, and the overall quality of your life. Register for the event. The week’s sessions include compassion’s power for changing lives, […]
  • Pediatric Grand Rounds Improving Accuracy in the Diagnosis and Treatment of Acute Otitis Media in Young Children Presented By: Alejandro Hoberman, MD President, Children’s Community Pediatrics Chief, Division of General Academic Pediatrics Vice Chair for Clinical Research Distinguished Professor of Pediatrics and Clinical and Translational Science Jack L. Paradise Professor of Pediatric Research Children's Hospital […]
  • How to celebrate holiday season 2021 is a great question for all. The diabetes wellness group team is going to be sure it’s fun and tastes good. Join Anna as she cooks some favorite holiday desserts that are fun to eat but include lower carbohydrate options. Recipes will be provided. Anna Simos, MPH, MS, CDCES […]
  • The 2021 Century Summit, to be held virtually on December 7th, 8th and 9th will once again bring together leaders across business, research, culture, and government to discuss the impact of people living longer lives. Convened in collaboration with the Stanford Center on Longevity, the Century Summit will offer leaders an opportunity to present new […]

After hearing back from Localist

So apparently, we use the Widget Builder for this, Preview the widget, copy the resulting URL, and change format=html to format=rss:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&all_instances=1&format=rss&template=modern

Here I’ve built the same feed, but turned off Include All Matching Instances but they’re in the wrong order:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&template=modern

So here’s an attempt to figure out the write parameter to add to the query string so it sorts chronologically:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=asc

And trying again, sorting desc:

https://events.stanford.edu/widget/view?schools=stanford&types=37093217343447&days=7&num=50&format=rss&direction=desc