Solved:
I was just getting confused on exactly how to save the media item and reference it in the template. I'm open to suggestions or comments for this solution.
- From my Google Calender settings, I copied the embed code (this could be a private or public calendar)
- In Zotonic I created a category called Calendar
- I added a new media item. I selected "Embed code", entered a title, selected Other for "From site" and pasted code. This was assigned id 387.
- I changed the category of this media item to be Media->Document and save the item.
- I added a rsc page and selected category calendar. This page's id was 388 and slug "building-project"
- I attached the media item that I saved earlier to this rsc and save the item.
I have a local dispatch that maps to something like this /calendars/[id]/[slug]
{calendar_details, ["calendar", id, slug], resource_page, [ {template, "calendar_details.tpl"}, {cat, calendar} ]},
Under Advanced for this page I changed the Page path to match my resource with something like this /calendars/388/building-project
In my calendars_details.tpl I referenced this media item by this
{% for m in m.rsc[id].media %} {# this returns a list of the media attached. Unfortunately I'm assuming only one item returned [387] #}
{% media m %} {# apply the media tag to the elements in this list, ie media 387 #}
{% endfor %}
I know this seems simple and straight forward, but if anyone else is as challenged as I am, they may find this useful :)
Thanks for a great framework!
Jeff