Members: 16,996
Threads: 38,846
Posts: 159,391
Online: 22

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
Old 01.11.2004, 15:18   #1 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 14
harshadoak is on a distinguished road
Lightbulb solution for Link tag error in rss feed

I noticed that the <link> tag in the rss feed generated by the syndicate component had the site description as the value. This was strange as it in fact should have been the site url. There also isn't any param provided to change the value of the link tag.

I don't know if this problem is specific to my installation. But anyway, thought I should share the solution I managed to came up with.

Add a new param to syndicate.xml

<param name="link" type="text" size="30" default="http://www.yoursitename.com" label="Link" description="Link Tag in Feed" />

In rss.php change

$info[ 'link' ] = htmlspecialchars( $mosConfig_sitename );

to this:

$info[ 'link' ] = $params->def( 'link', 'http://www.yoursitename.com' );

Now the <link> tag value in the RSS is http://www.yoursitename.com and it is also easily configurable.

regards,
harshad
harshadoak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
Old 01.11.2004, 15:57   #2 (permalink)
Baby Mamber
 
churm's Avatar
 
Join Date: Nov 2004
Location: Berlin
Posts: 17
churm is on a distinguished road
Default Re: solution for Link tag error in rss feed

actually, instead of hardcoding your URL into the rss.php, i think this would be better:

$info[ 'link' ] = $params->def( 'link', $mosConfig_live_site );
churm is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 01.11.2004, 20:00   #3 (permalink)
Baby Mamber
 
Join Date: Aug 2004
Posts: 14
harshadoak is on a distinguished road
Default Re: solution for Link tag error in rss feed

This solution is also good. In what I had suggested, the site name is not hardcoded as such as http://www.yoursitename.com will be the default value if at all a param is not specified.
harshadoak is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 13.12.2004, 23:52   #4 (permalink)
Junior Mamber
 
Join Date: Nov 2004
Posts: 35
snapadoos is on a distinguished road
Default Re: solution for Link tag error in rss feed

Quote:
Originally Posted by churm
actually, instead of hardcoding your URL into the rss.php, i think this would be better:

$info[ 'link' ] = $params->def( 'link', $mosConfig_live_site );

had this same problem and this worked great!
snapadoos 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
RSS feed out from my site mambomaster Mambo 4.5 'How Do I' Questions 4 03.12.2004 20:04
RSS Feed Component MGibson Component Development 3 14.11.2004 23:39
RSS Feed NoVeK Mambo 4.5 Allgemein 1 24.10.2004 14:10
RSS Feed in Simpleboard Ithaqua Mambo 4.5.1 General Talk 0 29.09.2004 10:00
RSS Feed von mamboreport.de descartes Mamboreport Ankündigungen & News 0 28.09.2004 12:58


All times are GMT +2. The time now is 12:29.

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.