Google日历Feed限制项目

时间:2012-07-14 14:15:51

标签: php rss google-calendar-api

此代码应显示我的Google日历RSS中的所有项目,但它将显示的帖子限制为大约23:

http://james.cridland.net/code/google-calendar.html

我的RSS Feed在这里:https://www.google.com/calendar/feeds/ta624s0k5sf002ji485o6d0bvg%40group.calendar.google.com/private-9f18d335ed346643800c76d0c96e286c/basic

1 个答案:

答案 0 :(得分:1)

除非你改变了这行代码:

// ...and how many you want to display (leave at 999 for everything)
$items_to_show=999;

它应该包含999个条目(或所有,因为它提到)。

这里的脚本似乎有错误(在max_results之后缺少'= sign')。

替换为:

// Form the XML address.
$calendar_xml_address = str_replace("/basic","/full?singleevents=true&futureevents=true&max-results=".$items_to_show."&orderby=starttime&sortorder=a",$calendarfeed); //This goes and gets future events in your feed.
相关问题