Integrate blogger content into radiant as tag.
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/models
db/migrate
lib
spec
README
Rakefile
blogger_extension.rb

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>