Gossamer Forum
Quote Reply
XML Feed - default
I have the XML Feed plugin set up to display new links. Is it possible for a default message to appear in the feed list if there are no new links?

I've tried adding the code below (in red) but it doesn't seem to work.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">

<title><%site_title%> Latest Additions</title>
<description>Site Description</description>

<%if link_results_loop~%>
<%loop link_results_loop%>
<title><%Title%> <%URL%></title>
No new links added this week.


Last edited by:

MJB: May 7, 2010, 8:25 AM
Quote Reply
Re: [MJB] XML Feed - default In reply to
That wouldn't work, as its not valid XML :)


<title>No new links</title>

..or something like that.

Oh, and it should really be:

<%if link_results_loop.length%>


Andy (mod)
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!

Last edited by:

Andy: May 7, 2010, 9:47 AM
Quote Reply
Re: [Andy] XML Feed - default In reply to
Ah, now I understand how it works. Thanks.