
ChetW
Staff

Oct 12, 2006, 4:27 PM
Post #2 of 4
(2637 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 [hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url] 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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]
(This post was edited by ChetW on Oct 12, 2006, 4:29 PM)
|