public
Description: Integrate blogger content into radiant as tag.
Homepage: http://www.endpoint.com/
Clone URL: git://github.com/stephp/radiant-blogger-extension.git
Ethan Rowe (author)
Wed Sep 09 11:35:09 -0700 2009
stephp (committer)
Wed Sep 09 14:13:12 -0700 2009
name age message
file README Fri Aug 28 13:25:22 -0700 2009 Adding active record transaction. Modifying inp... [stephp]
file Rakefile Wed Aug 26 12:44:35 -0700 2009 Initial Commit [stephp]
directory app/ Wed Aug 26 12:44:35 -0700 2009 Initial Commit [stephp]
file blogger_extension.rb Wed Aug 26 12:44:35 -0700 2009 Initial Commit [stephp]
directory db/ Wed Aug 26 12:44:35 -0700 2009 Initial Commit [stephp]
directory lib/ Wed Sep 09 14:13:12 -0700 2009 Adjust the import rake task to be non-destructi... [Ethan Rowe]
directory spec/ Wed Aug 26 12:44:35 -0700 2009 Initial Commit [stephp]
README
= Blogger Integration

To apply blogger database migration:
rake db:migrate:extension

To import blog articles, run one of the following:
#1 rake blogger:import_articles RSS_FEED="http://blog.endpoint.com/feeds/posts/default?alt=rss&max-results=999"
#2 rake blogger:improt_articles["http://blog.endpoint.com/feeds/posts/default?alt=rss&max-results=999"]
#3 rake blogger:import_articles (where RSS_FEED is set in environment)

To add blogger articles, add the following to a page, snippet or layout, where inputs to the feed include limit or sort:

Example #1:
<r:blogger_articles>
<r:blogger_articles:full>
<h2>Recent Blog Articles</h2>
<r:blogger_articles:each>
<r:blogger_article /><br />
</r:blogger_articles:each>
</r:blogger_articles:full>
</r:blogger_articles>

Example #2:
<r:blogger_articles limit="3" sort_by="date_published" sort_order="DESC">
<r:blogger_articles:full>
<h2>Recent Blog Articles</h2>
<ul>
<r:blogger_articles:each>
<li><r:blogger_article /></li>
</r:blogger_articles:each>
</ul>
</r:blogger_articles:full>
<r:blogger_articles:empty>
Sorry, there are no recent blog articles.
</r:blogger_articles:empty>
</r:blogger_articles>

To add news and blogger articles, add the following to a page, snippet or layout:
Example #1:
<r:news_blogger_articles>
<r:news_blogger_articles:full>
<h2>Recent Blog Articles</h2>
<r:news_blogger_articles:each>
<r:news_blogger_article /><br />
</r:news_blogger_articles:each>
</r:news_blogger_articles:full>
</r:news_blogger_articles>

Example #2:
<r:news_blogger_articles blogger_limit="3" news_limit="1" blogger_sort_by="date_published" blogger_sort_order="DESC" 
news_sort_by="published_at" news_sort_order="DESC" all_sort_by="title" all_sort_order="ASC">
<r:news_blogger_articles:full>
<h2>Recent Blog Articles</h2>
<ul>
<r:news_blogger_articles:each>
<li><r:news_blogger_article /></li>
</r:news_blogger_articles:each>
</ul>
</r:news_blogger_articles:full>
<r:news_blogger_articles:empty>
Sorry, there are no recent news or blog articles.
</r:news_blogger_articles:empty>
</r:news_blogger_articles>