How-to: Add News Feed and Module
From Gruff Goat Wiki
This How-to covers the basics of two different actions:
- Adding a news feed using the News Feed component
- Creating a user module that displays a news feed on pages of your choice
It then offers an alternative method to placing a news feed in a module.
Contents |
Using the News Feed Component
News feeds are organized by category, so it is often best to create your categories before adding news feeds. Categories may always be modified later.
Manage Categories
- Click Components >> News Feeds >> Manage Categories
- Click New
- Enter the Name
- Select the Category
- Enter the Link
- Browse to the selected site's news feed then cut and paste from the address bar
- Select the remaining fields to match your needs.
- Save
Manage News Feeds
- Click Components >> News Feeds >> Manage News Feeds
- Click New
- Enter a Category Title and Name
- Enter a short description
- Select and set the remaining fields to match your needs.
- Save
Creating a User Module News Feed
- Click Modules >> Site Modules
- Click New
- Enter the Title
- Enter the RSS URL
- Browse to the selected site's news feed then cut and paste from the address bar
- Select and set the remaining fields to match your needs.
- Save
If you don't see your new module, make certain that the module is both published and assigned to a at least one page.
Alternative Method
This method requires that the mambot kl_rssfeed is installed and published on your site. kl_rssfeed is available from
- Click Modules >> Site Modules
- Click New
- Enter the Title
- In the editor box enter the kl_rssfeed code
- Save
Example kl_rssfeed code:
{kl_rssfeed image="0" chtitle="0" chdesc="0" chsrc="0" title="1" desc="0" temsrc="0"
item_one="1" items="6" word_count="20" span="0" cache="3600" class="moduletable_newsfeed"
debug="0"}url_to_newsfeed{/kl_rssfeed}
kl_rssfeed Arguments
"image" "1" Display Channel images "chtitle" "1" Display Channel titles "chdesc" "1" Display Channel description "chsrc" "0" Do NOT Display the HTML source code for the Channel "title" "1" Display the item title "desc" "1" Display the item description "itemsrc" "0" Do NOT Display the HTML source code for the Item "item_one" "1" Specify the item number to start with "items" "1" Specify the max number of stories per feed "word_count" "100" Specify the max number of words per story "span" "0" Wrap the feed in a span or a div "cache" "3600" Number of seconds to cache each feed. "class" "kl_rssfeed" CSS class to be used in the various HTML tags. "debug" "0" Turning this on will produce a lot of output!