Members: 16,996
Threads: 38,845
Posts: 159,389
Online: 27

Newest Member: Kl_broka@rediffmail.com


Odoo.tv - Outdoor Television


Sedo - Domains kaufen und verkaufen das Projekt mambers.com steht zum Verkauf Besucherstatistiken von mambers.com etracker® Web-Controlling statt Logfile-Analyse

Go Back   Mambers.com > Development > Module 'How Do I' Questions

Reply
 
LinkBack Thread Tools Display Modes
Old 22.04.2004, 18:19   #1 (permalink)
Baby Mamber
 
Join Date: Apr 2004
Posts: 18
jabby is on a distinguished road
Default RSS Syndicating -> Allowing items other than frontpage to be sydicated

Quick question - if I want the RSS feed from the Syndicate module to feed headlines and news from my news items that are not on my frontpage - how would I do this???

I would still want the RSS 'button' on the frontpage, but I'm actually interested in including items on the 'news' page as well as the frontpage...

Thanks for any thoughts...
jabby is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 28.07.2004, 18:33   #2 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 5
pwalsh is on a distinguished road
Default Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

I'm interested in this as well if anyone has any thoughts.
pwalsh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.07.2004, 19:20   #3 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 5
pwalsh is on a distinguished road
Default Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

I've figured this out. Open up components/com_rss/rss.php (or components/com_rssxt/rssxt.php if you use that) and find the SQL query. You can find it by searching through the file for "setQuery".

Replace the line that says:

. "\nINNER JOIN #__content_frontpage AS f ON f.content_id = a.id"

with:

. "\nLEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"

and you will no longer be restricted to syndicating stories on the front page.
pwalsh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.07.2004, 21:26   #4 (permalink)
Baby Mamber
 
bucabay's Avatar
 
Join Date: May 2004
Posts: 12
bucabay is on a distinguished road
Default Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

Quote:
Originally Posted by pwalsh
I've figured this out. Open up components/com_rss/rss.php (or components/com_rssxt/rssxt.php if you use that) and find the SQL query. You can find it by searching through the file for "setQuery".

Replace the line that says:

. "\nINNER JOIN #__content_frontpage AS f ON f.content_id = a.id"

with:

. "\nLEFT JOIN #__content_frontpage AS f ON f.content_id = a.id"

and you will no longer be restricted to syndicating stories on the front page.
Thanks for that Pwalsh...
That does add all the articles to the rss feed.

I was wondering if there was a way to generate rss feeds for different sections of the site, like many blogs do.. if it isnt already available it would be a good component to develop. RSSXT just adds different formats and customization of the icons and what not... but not multiple rss feeds.
__________________
Fiji Web Design
Mambo Components:
Cpanel Email for Mambo!.
Mambo Components:
AJAX Chat for Mambo!.
bucabay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 28.07.2004, 21:35   #5 (permalink)
Baby Mamber
 
Join Date: Jul 2004
Posts: 5
pwalsh is on a distinguished road
Default Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

The author of RSSXT is updating the component and adding features right now. He's soliciting comments and suggestions.

Also, while looking at the code, it appeared to me that the stock RSS fee component can create feeds by category. I didn't explore it in depth though.
pwalsh is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.08.2004, 05:34   #6 (permalink)
Baby Mamber
 
bucabay's Avatar
 
Join Date: May 2004
Posts: 12
bucabay is on a distinguished road
Search Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

Quote:
Originally Posted by pwalsh
The author of RSSXT is updating the component and adding features right now. He's soliciting comments and suggestions.

Also, while looking at the code, it appeared to me that the stock RSS fee component can create feeds by category. I didn't explore it in depth though.
I looked at the code too but couldnt figure out how to create a feed for a single category or section. Just have to wait for the mambogurus I guess...
__________________
Fiji Web Design
Mambo Components:
Cpanel Email for Mambo!.
Mambo Components:
AJAX Chat for Mambo!.
bucabay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 03.09.2004, 19:22   #7 (permalink)
Professional Mamber
 
crash777's Avatar
 
Join Date: Apr 2004
Location: North East USA
Posts: 931
crash777 will become famous soon enough
Default Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

I have a calendar on one site and need to "port" the information over to other sites. I thought about using RSS to do that. I tried the solution above but that didn't seem to do it. Anyone have any suggestions on how I can go about doing this so that I only have to manage 1 calendar instead of 5?

Thanks!
crash777 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11.10.2004, 15:35   #8 (permalink)
Baby Mamber
 
bucabay's Avatar
 
Join Date: May 2004
Posts: 12
bucabay is on a distinguished road
RedCross Re: RSS Syndicating -> Allowing items other than frontpage to be sydicated

Quote:
Originally Posted by crash777
I have a calendar on one site and need to "port" the information over to other sites. I thought about using RSS to do that. I tried the solution above but that didn't seem to do it. Anyone have any suggestions on how I can go about doing this so that I only have to manage 1 calendar instead of 5?

Thanks!
I can think of three relatively "simple" ways to do this.

You could use the mamsites hack available at www.mamboportal.com. This allows you to use a single database for multiple sites. I havent tried it and might be wrong as it might just merge the users and core db tables. And have different tables for components.
Since only registered users can add events you will have to have the users registered on all 5 sites.

You could use index2.php instead of index.php, and use iframes around index2.php of the site containing the events component on each site.
Index2.php contains the mainbody only (components output) and does not have the modules or template structure to it. So if you have /index2.php?option=com_events it will show only the calendar. You can then wrap this in an iframe on any site. You can use the wrapper component or just wrap it in a module or something like that. You will however have to change each instance of the index.php links to index2.php.

You can also ... you know what.. i forgot the third.. hahaha.. gettin sleepy too. oh thtats it..
You can write a lil php script that fopens and freads the calendar component from the site you have it on. This will have to fread index2.php?option=com_events also and have each instance of the index.php changed to your script url and append the optional parameters to the end of the url string for your script to fread. Then when you display the "scraped" html you will have your calendar which gets its info from just one db.

all kinda messy things to do though... cant think of any other way then just making each events component point to your main db by hardcoding this into the component.
__________________
Fiji Web Design
Mambo Components:
Cpanel Email for Mambo!.
Mambo Components:
AJAX Chat for Mambo!.
bucabay is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auf Frontpage auch statischen Text Moonfire Mambo 4.5 Allgemein 4 20.04.2004 15:14
Frontpage mit wechselndem Inhalt Oliver Mambo 4.5 Allgemein 4 11.04.2004 19:22
Spaltenabstand auf der frontpage khan2002 Mambo 4.5 Allgemein 6 09.04.2004 14:18
[B]Different frontpage or multiply templates.[/B] formad Mambo 5.0 Wishlist 1 08.04.2004 05:02


All times are GMT +2. The time now is 09:31.

Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
A vBSkinworks Design
© Copyright 2004-2008 by Arthur Konze Webdesign.