 |

Sauron
Novice
Oct 12, 2006, 2:47 PM
Post #1 of 4
(856 views)
Shortcut
|
|
Multiple RSS feeds
|
Can't Post
|
|
I need someone to answer these questions. 1) How do i setup seprate multiple RSS feeds for different categories? For example (World News Category: will have its own RSS FEED, Local News will have its own, etc) 2) How do i setup a seprate RSS feed with only Category Title and Article Title(<-With link embeded) and so it only be able to parse six items at one time?? 3) How do i setup a seprate RSS feed with Category title, Article Title(<-With link embeded), Description, and a Read More... link. Which only parses recent random article? I would like to parse all these feeds into a different php file totally out of article manager. Thanks.
|
|
|  |
 |

ChetW
Staff

Oct 12, 2006, 4:27 PM
Post #2 of 4
(850 views)
Shortcut
|
|
Re: [Sauron] Multiple RSS feeds
[In reply to]
|
Can't Post
|
|
Hi, Thanks for the post! I have read through and answered each of your questions below, one thing to keep in mind is that when saving a newly created article Article Manager will also up the multiple RSS feeds. This means that saving a new or edited article may take longer then it had before. > How do i setup seprate multiple RSS feeds for different categories? For example (World News Category: will have its own RSS FEED, Local News will have its own, etc). Setting up a per category rss feed can be done to do this you will want to edit your "publishcron.ini" file for example at the moment you may have something like this: Edit this bit of code: query1 = search=1&perpage=20&template=index/rss_template.xml to this: query1 = search=1&perpage=20&cat=X&template=index/rss_template.xml You will also want to replace the "X" in cat=X to the actual category number. Next to create multiple category feeds you would use the extra query strings in your publishcron.ini file. The end results of editing the "publishcron.ini" file so that multiple category based xml files are created may look similar to this: The above changes will create three rss feeds one each for categories 1,2 and 3 and they will be created based on the rss_template.xml file. > How do i setup a seprate RSS feed with only Category Title and Article Title(<-With link embeded) and so it only be able to parse six items at one time?? To do this you will simply create a new xml template file based on the "rss_template.xml" file to do this follow the steps below: 1. Download the "rss_template/xml" file from inside your templates directory. Then create a new copy of this template file for example purposes lets call it "rss_title_template.xml". 2. Open up your new "rss_title_template.xml" file and edit it so that only your category title and article name and embedded link are displayed, when you are finished save your changes and re-upload the file back into your /templates/index/ directory. 3. Next you will edit the "publishcron.ini" file so that this query uses your new "rss_title_template.xml" file instead of your "rss_template.xml" file. For example purpose I will use query3 that we created a few moments ago: - Inside your "publishcron.ini" file look for the following code: query3 = search=1&perpage=20&cat=3&template=index/rss_template.xml and replace it with this: query3 = search=1&perpage=6&cat=3&template=index/rss_title_template.xml query3 will now use your newly created "rss_title_template.xml" file to create category 3's xml file, this xml file will only contain your category name and article name and embedded link. Also notice that we changed the "perpage" value to 6, this means only six articles will displayed on your published file. > How do i setup a seprate RSS feed with Category title, Article Title(<-With link embeded), Description, and a Read More... link. Which only parses recent random article? I am not sure how to set it so that your rss feed will publlish random articles Sauron, you could set-up the feed to only display say "featured" articles from the different categories though. :) Would this be something that might work for you? Give this a try and if you have any questions please feel free to ask! Cheers, Chet Woodside - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
(This post was edited by ChetW on Oct 12, 2006, 4:29 PM)
|
|
|  |
 |

Sauron
Novice
Oct 14, 2006, 11:14 PM
Post #3 of 4
(822 views)
Shortcut
|
|
Re: [ChetW] Multiple RSS feeds
[In reply to]
|
Can't Post
|
|
Hi, Now i have some more questions. 1) In the rss template what code do i put in to show category name of that article? 2) How do i add summary/description in my rss template? so it shows off summary with the article headline. This is outside of Article Manager but i thought you might suggest something. 3) How do i parse images on to some php page? Thanks a lot.
|
|
|  |
 |

ross
Staff
/ Moderator

Oct 15, 2006, 2:45 PM
Post #4 of 4
(814 views)
Shortcut
|
|
Re: [Sauron] Multiple RSS feeds
[In reply to]
|
Can't Post
|
|
Hi Suaron. Thanks for getting back in touch! I am going to go over your questions one at a time . 1. The get the category name appearing in your RSS feed, you would just need to add $cat_name$ onto your template. I think the best place would be right before the article name like this:
<title>$cat_name$ : $art_name$</title> 2. Descriptions can be added by placing the following line right after <link>$detail_link$</link>:
<description>$art_summary$</description> Now, you’ll need to be carefull here. Your RSS is being created using what is called XML and you’ll find that XML is a little strict about what kind of text you have in it. That means, you’ll need to make sure there are no special characters like “! @ # $ %” in your summary. What I have seen people do in the past is actually have two summaries for each article. One regular one and one specially done for the RSS feed that doesn’t have special characters. 3. I don’t really understand this question. Article Manager already lets you upload images and have them appear on your pages (and your pages can have php extensions). If you could get back to me with some more details on this one, that would be great! How does that all sound? I look forward to hearing from you . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 | |  |
|