Simple News Extension for Radiant CMS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


= News

Original Created by Pascal Naef (ScreenConcept), December 2008
This version by Ahmy Yulrizka (ahmy), September 2009

With this news extension you can enter news with headline, leadtext and text in backend. A news will be only displayed if start is greater or equal current date and stop is less or equal current date.

For this extension you need a couple of plugin
* calendar data select plugin is required. Further informations are you find here: .
* will paginate. Further information and installation you can see here

for will_paginate, the easiest way is just using the gem and add 'require "will_paginate"' on “config/environment.rb” as the above site show. 

* News can be grouped by category
* News can be tagged
* News can be filtered by category or tag also by id
* Limit the news that show up
* Added Date tag
* 2 Page mechanism, (Front Page and Entry Page). Entry page display specific news


1)Install the News Extension

git clone git:// vendor/extensions/news

2) run migration and update

rake production radiant:extensions:news:migrate
rake radiant:extensions:news:update

3) Start (or restart) your server


Radius Tags
<r:news:current>: Returns all current news
<r:news:headline >: Returns headline
<r:news:leadtext >: Returns leadtext
<r:news:text >: Returns text
<r:news:marquee [behavior="scroll"] [direction="left"] [loop="true"] [scrollamount="1"] [scrolldelay="2"] > : Returns a <marquee>-Tag with all current news and leadtexts.

Basically you'll need 2 page:
1. Front Page. This is the page you want to show more than one news. typically lead text. This page type can be anything.
2. Entry Page. This page show only one news. This page type must be "News Entry"

1. Front page will be like this

<r:news:headline /><br>
<r:news:leadtext /><br>

This will show all leadtext of the news and provide the link to the full news.
you can also limit the front page to specific category or tag and also limit the number like this

<r:news:current category="category 1" limit="1"><br>
<r:news:headline /><br>
<r:news:leadtext /><br>

2. The entry page. IMPORTANT: this page type must be "News Entry" and can be only one of this page

<r:news:headline /><br>
<r:news:text /><br>

this will show the full news, without the lead text.