Re: Feeds Integration - Mailing list pgsql-www

From Chris Ryan
Subject Re: Feeds Integration
Date
Msg-id 20040219184944.71602.qmail@web40004.mail.yahoo.com
Whole thread Raw
In response to Re: Feeds Integration  (David Costa <geeks@dotgeek.org>)
Responses Re: Feeds Integration  (David Costa <geeks@dotgeek.org>)
Re: Feeds Integration  (David Costa <geeks@dotgeek.org>)
List pgsql-www
>
> Umh, so what about the link ? is it part of the body ? if that is the
>
> case it might be a problem, can solve that, just not the fast way to
> produce the xml from db data.
>

    Here is an updated query. The URL had slipped my mind as one I
build the URLs from knows practices on GBorg and the body is actually
the full story. You'll note as well in the query below that I added in
for getting the submitter of the news item.

SELECT headline AS title,

'http://gborg.postgresql.org/project/'||project_name||'/news/newsfull.php?news_id='||news_id
AS link, -- the fully built url to the news item
       body,   -- the full news text you may want to abbreviate here
       member_name AS author, -- member name on gborg of author
       submit_date   -- date not datetime :(
  FROM project_news, project, member
 WHERE (project_news.project_id=project.project_id)
   AND (project_news.member_id=member.member_id)
   AND (project_news.active=true)
   AND (project_news.on_homepage=true)
 ORDER BY submit_date DESC
 LIMIT 10;



Chris Ryan


__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

pgsql-www by date:

Previous
From: elein
Date:
Subject: Re: Mirror how-to?
Next
From: David Costa
Date:
Subject: Re: Feeds Integration