1. Fill out Calguy's trial news template with my settings: I just accepted the default.
2. Put the autodiscovery call in my page templates: {CGFeedMaker action='autodiscovery' feed='myFeed1,myFeed2 '} This is to be found in the help for the module. You need to put it in the section of the template, not the body.
This is what makes the RSS icon show up inthe tool bar of your browser. You can put this in the template you use for a single page, and it will only show there, or you could put it in your default template and it will show in all pages. NOTE for newbies like me: this is the RSS Icon in your browser tool bar, not the one that shows on your page.
3. To get an RSS icon on your page you have to have this code:
{CGFeedMaker action='rsslink' feed='myfeed'} Obviously you change 'myfeed' to whatever name you gave it.
4. Once I worked this out I was directed to a blank page... no feeds. The fun begins.
Note that I am in Australia; we do not use the mmddyy date format
5. You have to work with the default template that goes with your feed. Near the bottom you will find:
I took out {$entry->postdate|us_date_format:"%a, %d %b %Y %H:%M:%S %Z"}{* an example of how to create a feed from a call to the news module *}
{* you can use any smarty variable that is available in the news summary template *}
{* you can substitute this logic with output from any module that supports a summary
view, or possibly get artistic and mix output from different modules *}
{news assign='junk'}
{foreach from=$items item='entry'}
{$entry->title}
{$entry->moreurl}
{if isset($entry->summary)}{$entry->summary|strip_tags|summarize:40}{else}{$entry->content|strip_tags|summarize:40}{/if}
{$entry->postdate|us_date_format:"%a, %d %b %Y %H:%M:%S %Z"}
{$entry->moreurl}
and replaced it with {$entry->postdate|rfc_date}
This gave a news feed page if I looked in the source code of my browser window but there was still and error and the browser would not display it.
6. Mats alerted me to the code at the top of the original feed template:
This bit{* original rss feed template *}
{$feed.title}
{if isset($feed.link) && !empty($feed.link)}{$feed.link}{/if}
{if isset($feed.description) && !empty($feed.description)}{$feed.description}{/if}
only works for Pretty URL's which I don't have, so I took it out.
Everything works swimmingly.
NEXT PROBLEM!
We use the News module in two ways. Clumsy but it works.
a) When we have a short news post, usually a tip to another site we have a very short line in the summary and some more detail in the detail box.
b) When we post our own articles, we make a news post about it, ONLY using the detail content box. Those posts show up with a title and not content in the RSS feed because the default template reads the summary content. So I have modified the template so that it works for us, as below.
ORIGINAL DEFAULT CODE:
{news assign='junk'}
{foreach from=$items item='entry'}
{$entry->title}
{$entry->moreurl}
{if isset($entry->summary)}{$entry->summary|strip_tags|summarize:40}{else}{$entry->content|strip_tags|summarize:40}{/if}
{$entry->postdate|us_date_format:"%a, %d %b %Y %H:%M:%S %Z"}
{$entry->moreurl}
{/foreach}
OUR CODE
My thanks to those who helped me. Andrew{* an example of how to create a feed from a call to the news module *}
{* you can use any smarty variable that is available in the news summary template *}
{* you can substitute this logic with output from any module that supports a summary
view, or possibly get artistic and mix output from different modules *}
{news assign='junk'}
{foreach from=$items item='entry'}
{$entry->title}
{$entry->moreurl}
{$entry->content|strip_tags|summarize:40}
{$entry->postdate|rfc_date}
{$entry->moreurl}
{/foreach}
ORIGINAL POST
I needed to upgrade to 1.5 to fix another problem, and now am completely flummoxed by the CGFeedMaker.
I think I am badly missing a whole lot of knowledge, or to put it another way, I have not grasped the concept behind CGFeedmaker .
This is what my site has:
On this page:
http://scotschurch.org/index.php?page=wiredup
I have this news feed:
which was operating with makersbutton=true etc. That news feed still operates fine, but I don't know how to add a feed icon/link to it{news number = "10" summarytemplate="WiredChurchSummary" detailtemplate="WiredChurchDetail" category="wiredarticle"}
I can put this code in a trial page:
and get a link and RSS Icon, but of course it goes nowhere.{CGFeedMaker action='rsslink' feed='wiredup'}
In the Adminstrator Console, I can go to Extensions | Calguys Feed Maker, but then I get lost.
In the Sample News Feed I cannot work out what to put into these fields:
Feed Name/Alias:
Use this page for links:
Feed Link:
I am also unclear what changes I should make to the Template.
I have tried a number of values, and tried to make sense of some of the pages in the wiki, but I think I am missing the point somwhere.
I note also that the help page he says we need to place:
on a page. I assume this goes on the same page as the {CGFeedMaker action='rsslink' feed='wiredup'} link, and that the feed name should be the value assigned to the Feed Name/Alias{CGFeedMaker action='autodiscovery' feed='myFeed1,myFeed2 '}
If someone could give me some tips on just what values I am putting where, I reckon I can sort out my formatting etc.
Many thanks.
Andrew Prior