Hello:
I’m using the Magpie Plugin to show the information from a Google Calendar; it all works great however, the information doesn’t get listed the way I want. Here’s what I’m using:
{exp:magpie url="http://www.google.com/calendar/feeds/[email protected]/public/basic?orderby=starttime&sortorder=ascending&futureevents=true&singleevents=true&hl=en" offset="1" limit="5" refresh="720"}
{items}
<span class="sub">{title}</span>
{content}
{/items}
{/exp:magpie}
And this is what I get (exactly the way it shows; with extra-brakes and all)
Wisconsin University When: Sat Nov 1, 2008 9:45am to 11:45am EDT Where: Oshkosh, WI - Reeve Memorial Union Event Status: confirmed
The way I want it is this:
Wisconsin University Oshkosh, WI - Reeve Memorial Union Saturday, Nov 1, 2008 9:45am to 11:45am EDT Event Status: confirmed
Note the removal of extra-brakes & styling.
I’m not sure if I should work the plug-in to show the info the way I want it; or Google Calendar has its own limitations.
I was even thinking if there’s another plug-in/script that could help me manipulate the information better than Magpie?
Well, you could certainly style the {title}, make it bigger, use a <h.> tag or something, but the rest is coming from Google Calendar as is, I think, thrown together in the {content} blob, so unless you parse it locally using some PHP that’s the way it is.
You’d probably need another plugin to style {content} the way you want it.
Well, I ended up using ‘gcal’ : much more flexible when it comes to displaying a public Google Calendar a specifying what information shows and where.
Check out this post: http://ellislab.com/forums/viewthread/79178/
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.