Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Latest Links in External web (javascript, rss)

Quote Reply
Latest Links in External web (javascript, rss)
Hi

Is there a way to add a script to show the latest links in an external web?

may be some java script plug in, or a rss plug in?

Thanks
Quote Reply
Re: [tenoch] Latest Links in External web (javascript, rss) In reply to
This is how I do it (I'm sure there are other ways, this is just what I came up with):

1. Install the XMLResults plugin.
2. Format xml_search_results.xml as you need it.
3. Add a rewrite rule to generate a 'virtual' .xml file based off the XML results from search.cgi:
Code:
RewriteRule rss.xml /cgi-bin/search.cgi?query=;isNew=Yes;sb=ID;so=DESC;xml_feed=1
4. Make your XML feed available on your home page (the 'Add to Google' and 'Add to MyYahoo!" buttons can be used as well).

The main part you need to customise in xml_search_results.xml is this:
Code:
<%loop link_results_loop%>
<%if row_num < 10%> <!-- number of items in feed -->
<item>
<title><%Title%></title>
<link><%URL%></link>
etc. etc.
</item>
<%endif%>
<%endloop%>
Hopefully that gets you started and I didn't leave anything out Wink.
Quote Reply
Re: [aus_dave] Latest Links in External web (javascript, rss) In reply to
Thanks a lot
I will try it tonight


Thanks