Cornelius Weiss escribió:
Hi Oscar.
The export.php is just the feed generator. In RSS-feeds, just the headline and
a link to the complete news is present. (somtimes an abstract also)
For a link to a complete news you have to configure the URL in feed settings.
This URL atm. has to be a sitemgr site with a news-module on it.
This is ok to me. What “annoys” me is that the url people have insert in
the aggregator is one containing the
egroupare/news_admin/website/export.php path.
Well, what you want, is a source without sitemgr in between right?
No, I just want the source to be in sitemgr (in fact, in the copy of the
sitemgr-site tree for the site), so a url like
http://mysite.with.sitemgr-site/rss.php?whatever is fine. I think that’s
what people expect from a site with rss feeds (I least I do). The
shortcut is to click the RSS icon, test by seeing a xml page generated
with the data and paste the url from the browser in the aggregator.
The central point is that I think one can’t/shouldn’t offer RSS feeds
without having a site.
in this case i suggest to enhance export.php in the way that it also can also
serve a signle complete news-item. If no URL in the config is supplied, we
choose the export.php
I think that if export.php (maybe with a different name) was a
"newsholder" in a way that the sitemgr-site/rss.php script provided
basic data and internally included the export.php script, that would at
least make more sense (to me), to not repeat data.
About the tag. I don’t think that it is nessesary, cause the feeds are
working fine in Thunderbird and Aggregator.
I have to say that thunderbird rejects my tries saying that my url is
not a valid RSS feed, but this could be something on my side.
cu
cornelius
Regards.
Oscar Manuel Gómez Senovilla escribió:
Cornelius Weiss escribió:
but it seems to autogenerate
the url news_admin/website/export.php?cat_id=XX (that’s at least what I
get when linking from site manager),
Thats the script with the xml-feed, not containing the news.
The rest is fixed now in cvs
Well, the first issue is that a “header(‘Content-Type: text/xml’)” line
is missing in order to properly see the feed (or at least, closer to
what should be seen), so with this a xml page is shown with "rss look"
and the supposed content. What I’ve done is to copy the
website/export.php file to the site directory, in order to customize it
for the site and (try to) tell news admin to use the url corresponding
to the file to generate the feed. Unless I’ve done something wrong
(which could be), from site manager, the url for the feed in the news
item is always the one from the news_admin app, which is not what I’ve
set in the RSS export section. I didn’t dig into this, but I don’t know
if it’s a site manager issue or a news admin issue. For the test to see
the xml content, I typed the url myself, overriding the one set by site
manager. This shouldn’t be hard to fix, I think.
After a look, I’ve found the least expected situation: the export script
doesn’t support handling individual news items, because it only handles
a cat_id parameter (and forces to be present). I wonder which is the
intended way to handle retrieving a single news item.There’s the
bonews::get_news($news_id) function, so I think that a rewriting of the
export script is needed. In fact, since I guess this script is similar
in concept to sitemgr/sitemgr-site/config.inc.php, so I think the
function code in this script should be inside news_admin classes, and
just perform an include of some script that handles this.
Regards.
PD: I’m still wondering the exact meaning of the several url types,
unless that’s something that depends on rss specifications for different
versions.
----------------------------------------------------------------------|
http://counter.li.org info: Linux user: 92390 - Linux machine: 39301 |
Oscar Manuel Gómez Senovilla - mailto:omgs@escomposlinux.org |
GPG Key at http://pgp.escomposlinux.org |
----------------------------------------------------------------------|
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click
eGroupWare-developers mailing list
eGroupWare-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-developers