We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Having 'magpie' show Google Calendar entries; my way:

Development and Programming

October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

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?

       
Ingmar Greil's avatar
Ingmar Greil
29,243 posts
16 years ago
Ingmar Greil's avatar Ingmar Greil

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.

       
October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

Ahh, there’s some scripts floating around offering a wide array of choices, I guess I’ll have to dig into them. But, thanks for the quick reply Ingmar. I’ll post an update if I get to twist & turn GCal the way I want it.

       
Chris Newton's avatar
Chris Newton
440 posts
16 years ago
Chris Newton's avatar Chris Newton

I believe you could use jquery as well to manipulate the contents, I’m not going to look up the exact syntax, but it’s pretty powerful when it comes to manipulating and styling text.

       
October11's avatar
October11
183 posts
16 years ago
October11's avatar October11

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/

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.