You are not logged in.
Offline
Offline
hey Walker your site looks smart
any chance you could show the code that sorts the permlink out – mine still doesnt work it outputs http://url of site/textpattern//example-of-name
Offline
Colak, here’s what your page should look like:
<?xml version="1.0" encoding="utf-8"?> <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <channel><generator>http://textpattern.com/?v=4.0.4</generator> <title>Site Title Here</title> <link>http://www.domain.com/</link> <description>a description of the feed here</description> <pubDate><txp:php>date('D, M Y H:i:s')</txp:php> GMT</pubDate><txp:bit_rss (with arguments) /></rss>
and here’s what your rss form might look like, it’s not exactly right. the missing piece is that the link (the url of the entry) should really be output between the link tags, but permlink has to have a closing and outputs the a href automatically, which shouldn’t be there…..
<item><title><txp:permlink><txp:title /></txp:permlink></title>
<description><txp:body /></description>
<link> </link>
<pubDate><txp:posted /></pubDate></item>
Offline
bah, so I hacked it together….put the following in bit_rss.
function bit_permurl($atts) { global $thisarticle;return $item->get_description(); }
then your proper rss form will look like this
<item><title><txp:title /></title>
<description><txp:body /></description>
<link><txp:bit_permurl /></link>
<pubDate><txp:posted /></pubDate></item>
Offline
@dai
I’m not sure why yours is outputting a relative url rather than an absolute. Is there a possibility that what feed simplepie is reading to create the page you’re looking at does not have absolute urls in it?
Offline
Marios, If you installed it, you’ll notice that bit’s plugin is using simplepie for the feed parsing.
Offline
for those having problems with the site giving you weird permlinks such as “domain.com//syndication-title”, I found the mistake for me to be that I simply used <a href=”<txp:permlink>” …><txp:title /></a> INSTEAD OF <txp:permlink><txp:title /></txp:permlink>. The latter ended up working for me.
-Nico
Offline
@walker, I meant the simplepie plugin for textpattern,
not the function library file.
( that one can only be used in a page template. Seems they didn’t take advantage of all the TXP goodies)
( BTW.: Awesome work, there in the portfolio, saw it)
regards, marios
Last edited by marios (2007-01-14 02:22:55)
⌃ ⇧ < ⎋ ⌃ ⇧ >
Offline