combining rss feeds?
Posted: 10 March 2005 03:59 PM   [ Ignore ]  
Grad Student
Avatar
Rank
Total Posts:  77
Joined  09-02-2003

hey guys / gals,

i have two blogs on one page, a main blog and a mini links blog, so to speak. is there as easy way to combine these into one rss feed?

best-
jmorrison

Profile
 
 
Posted: 10 March 2005 04:01 PM   [ Ignore ]   [ # 1 ]  
Grad Student
Avatar
Rank
Total Posts:  77
Joined  09-02-2003

note: without using magpie.

link: the nonist

Profile
 
 
Posted: 10 March 2005 05:06 PM   [ Ignore ]   [ # 2 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

This is just a template modification, much like modifying any other template to show a combined setup.  You go to the rss feed in question (ie rss_atom) or whatever - find the {exp;weblog:entries} tag and it should have weblog=“weblog1” or some such, just pipe in the second weblog, ie weblog=“weblog1|weblog2” and then add the custom feeds between that and the closing {/exp:weblog:entries} tag =)

 Signature 
Profile
MSG
 
 
Posted: 10 March 2005 08:36 PM   [ Ignore ]   [ # 3 ]  
Lab Assistant
RankRank
Total Posts:  147
Joined  06-26-2004

Well, it’s almost as easy as LisaJill says. However, there are a few tricks.

The {exp:rss:feed} tag can only name one weblog. That’s the weblog information that will appear in the “channel” description. This usually consists of the weblog name, the description (if you have one), and the language coding. You can always replace the variables with specific text if you don’t want it to have the information from a particular weblog.

For the dc:date (or pubDate) element of the channel, you probably want the date of the latest entry on any of the included weblogs. To do that, replace the

{gmt_date format="%D, %d %M %Y %H:%i:%s GMT"}


with

{exp:weblog:entries
weblog
="weblog1|weblog2|weblog3" limit=1}{gmt_entry_date
format
="%D, %d %M %Y %H:%i:%s GMT"}{/exp:weblog:entries}


(being sure to set all of the weblog names in there).

And, as LisaJill said, put all of the weblog names in the {exp:weblog:entries weblog=“weblog1|weblog2|weblog3”} tag that generates the items. You might want to increase the “limit” to allow additional items, since they’re coming from multiple weblogs.

Profile
 
 
Posted: 10 March 2005 08:41 PM   [ Ignore ]   [ # 4 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

I’m lazy, I never worried about those other things. wink

 Signature 
Profile
MSG
 
 
Posted: 11 March 2005 04:52 AM   [ Ignore ]   [ # 5 ]  
Grad Student
Avatar
Rank
Total Posts:  77
Joined  09-02-2003

thanks guys, pretty simple huh? haha. well, changes are made. hopefully it works. best!
-j

Profile
 
 
Posted: 11 March 2005 09:08 AM   [ Ignore ]   [ # 6 ]  
Lab Assistant
RankRank
Total Posts:  147
Joined  06-26-2004

Hmm, you might, or might not, want to use “gmt_edit_date” instead of “gmt_entry_date” like I wrote above. The gmt_entry_date gives the date of original article submission, not the latest edit that was made.

Oh, and wiki’d.

Profile
 
 
Posted: 24 March 2005 04:08 AM   [ Ignore ]   [ # 7 ]  
Lab Assistant
RankRank
Total Posts:  108
Joined  04-04-2004

Hi all,
that helped, but what if I have 2 different permalink-templates :-(
Letīs say I have 2 weblogs, articles and products,
Each article goes into articles/more and products are under products/details

I assume that in

<items>
    <rdf:Seq>{exp:weblog:entries weblog=“weblog1|anbieter” limit=“15”}
    <rdf:li rdf:resource=”{title_permalink=weblog/index}” />
    {/exp:weblog:entries}</rdf:Seq>
  </items>

the line
    <rdf:li rdf:resource=”{title_permalink=weblog/index}” />

the weblog/index will be replaced by articles/index and products/index (when using the example). But I would need articles/more and products/details.

Can I build an {if} clause here or do I need to change products/details into products/more?

cheers
awa

Profile
 
 
Posted: 24 March 2005 08:52 AM   [ Ignore ]   [ # 8 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

don’t use title_permalink, using {comment_url_title_auto_path} instead - that will pull up the comment URL for the weblog in question.  If you use that as your permalink page then you won’t have a problem.

 Signature 
Profile
MSG
 
 
Posted: 24 March 2005 08:54 AM   [ Ignore ]   [ # 9 ]  
Lab Assistant
RankRank
Total Posts:  147
Joined  06-26-2004

You can use {if} clauses if you want.

But in many cases it is easier to use a comment auto_path: {comment_url_title_auto_path}, {comment_entry_id_auto_path}, or {comment_auto_path}. These use the “comment page URL” that you set up for each weblog under “Weblog Preferences”. The standard RSS 1.0 template uses comment_url_title_auto_path.

Profile
 
 
Posted: 24 March 2005 09:03 AM   [ Ignore ]   [ # 10 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  758
Joined  09-27-2004

how i can change this: <rdf:li rdf:resource=”{title_permalink=weblog/index}” /> to the comment page? on which place i must write comment_url…..?

Profile
 
 
Posted: 24 March 2005 09:06 AM   [ Ignore ]   [ # 11 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  758
Joined  09-27-2004

and how i can use this with comment in rss2? on which place i need the changings?

Profile
 
 
Posted: 24 March 2005 09:07 AM   [ Ignore ]   [ # 12 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

right there.

<rdf:li rdf:resource=”{title_permalink=weblog/index}” />

to

<rdf:li rdf:resource=”{comment_url_title_auto_path}” />

and anywhere else that title_permalink thing is used.

 Signature 
Profile
MSG
 
 
Posted: 24 March 2005 09:08 AM   [ Ignore ]   [ # 13 ]  
Moderator
Avatar
RankRankRankRankRankRankRankRank
Total Posts:  32895
Joined  05-14-2004

The same thing, anywhere you see a path= statement, or a title_permalink= statement, just replace it as in the example above.

 Signature 
Profile
MSG
 
 
Posted: 24 March 2005 09:12 AM   [ Ignore ]   [ # 14 ]  
Research Assistant
Avatar
RankRankRank
Total Posts:  758
Joined  09-27-2004

thxs

lisajill. yu are the best and fastest grin

Profile
 
 
Posted: 24 March 2005 10:13 AM   [ Ignore ]   [ # 15 ]  
Lab Assistant
RankRank
Total Posts:  108
Joined  04-04-2004

Hi LisaJill,
thanks - works now and thank you very much for your quick and competent help!
awa

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 1149, on July 16, 2007 09:33 AM
Total Registered Members: 64978 Total Logged-in Users: 24
Total Topics: 82016 Total Anonymous Users: 19
Total Replies: 440814 Total Guests: 195
Total Posts: 522830    
Members ( View Memberlist )