When I try to use an xsl stylesheet called rss.xsl and take a look at the HTML source I see:
Shouldn't that be:Code:<?xml-stylesheet type="text/css" href="includes/templates/YOUR_TEMPLATE/css/rss.xsl"?>
?Code:<?xml-stylesheet type="text/xsl" href="includes/templates/YOUR_TEMPLATE/css/rss.xsl"?>
(the xsl stylesheet does not seem to work at al, but because I'm new to this I am not sure if the above really is related)
I fixed the above by replacing 'xls' by 'xsl' (in rss_feed_v2.0.5_20.10.2007) in function rss_feed_out(), and I found the same typo in 2 readme files. So it was caused by a small typo.
Unfortunately my xsl stylesheet still doesn't work for some reason though. It seems server related because if I copy a sample xsl stylesheet to my local PC it works, but when I copy the same file to my server it does not.Even tried another server and the same xsl file works perfect again.
Does xsl depend on the server configuration?
yvw Andrew :-)
Do you think it would be useful to add a dynamic feed name feature? (Maybe you already have plans for this?) Having the same name for multiple subscribed feeds is quite confusing I think. Maybe add the word "featured" to the featured feed name , "specials" to the specials feed name etc etc?
And, I not sure if it's useful or not, and if it's the right way to fix this, but to prevent links like:
I changed (rss_feed.php class, function _clear_url()):Code:<link>http://www.mydomain.com//</link>
To:Code:$out .= $pathinfo["dirname"] . '/';
Code:// $out .= $pathinfo["dirname"] . '/'; // prevent double slashes in path $out .= rtrim($pathinfo["dirname"], '/'); $out .= '/';
About the feed names:
a quick and dirty fix might be to add the right part of the feed= parameter? But it would probably be a lot nicer if the products name, categories name, and translations of featured and specials etc would be added. Maybe add some code that determines the names to the switch/case header_php.php file? I don't know the rss feed code well enough and so I don't have more specific ideas (yet).
About the double slashes:
Looking at several sites that have the rss feed installed I do see the the double slashes, also in links to the products for example. I don't know what the real problem (and solution) is, but I think it's related to how dirname works. And a quick look at the code lead to this empirical fix :-)
Hi paulm,
You don't understand me. I do not ask "how?". I myself know this very well and know perfectly my own rss feed code.I ask you "what?". What you want to see in this rss feed. I think is not only complement the title, but also a description and maybe an image.
Maybe add all common <link rel="alternate" type="application/rss+xml"? Ex:
Code:<link rel="alternate" type="application/rss+xml" title="MyCart New Products RSS Feed" href="index.php?main_page=rss_feed&feed=new_products" /> <link rel="alternate" type="application/rss+xml" title="MyCart Upcoming Products RSS Feed" href="index.php?main_page=rss_feed&feed=upcoming" /> <link rel="alternate" type="application/rss+xml" title="MyCart Featured Products RSS Feed" href="index.php?main_page=rss_feed&feed=featured" /> <link rel="alternate" type="application/rss+xml" title="MyCart Specials Products RSS Feed" href="index.php?main_page=rss_feed&feed=specials" />
Bookmarks