Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2006-01-25 03:12:19

Anark
Member
Registered: 2004-08-14
Posts: 101

Re: [plugin] [ORPHAN] ajw_clean_feed

It didn’t. So I emended it to:

<code><txp:ajw_clean_feed sitewide=“y” area=“comments” wraptag=“li” label=“Comments” flavor=“rss” title=“RSS feed” /></code>

Which still outputs nothing at all…

Last edited by Anark (2006-01-25 03:13:15)

Offline

#14 2006-01-25 03:14:33

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_clean_feed

Ah crap my fault… (edited above) the template tag which outputs links to the feed is <strong> ajw_clean_feed_link </strong>

(“<code>ajw_clean_feed</code>” isn’t a template tag; it’s just the name of the plugin as a whole).

Last edited by Andrew (2006-01-25 03:20:35)

Offline

#15 2006-01-25 05:28:43

Anark
Member
Registered: 2004-08-14
Posts: 101

Re: [plugin] [ORPHAN] ajw_clean_feed

Ah — should have seen that myself. I think I’m sorted now. Thanks again!

Offline

#16 2006-01-30 07:15:33

Dawk
Member
Registered: 2005-02-22
Posts: 74

Re: [plugin] [ORPHAN] ajw_clean_feed

Great plugin ;)

Any way to combine certain sections into a single feed?

Working perfectly for most of what I’m doing, would like to combine a couple related & low volume sections though.

Thanks for a great plugin

Offline

#17 2006-01-30 16:37:40

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_clean_feed

This plugin is currently mirroring Textpattern’s default feed functionality. As to extending it to multiple sections, I probably won’t be attempting it anytime soon.

Offline

#18 2006-01-30 17:43:12

Dawk
Member
Registered: 2005-02-22
Posts: 74

Re: [plugin] [ORPHAN] ajw_clean_feed

Thanks again Andrew, great plugin.

I think I might be able to fudge a solution?
Maybe pull all the title/excerpts I want to combine into a faux section page, then use the feed from that combined section?

Anyone see anything wrong with that idea or have a better one? :)

Thanks

Offline

#19 2006-01-30 18:29:48

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_clean_feed

Or modify the plugin to accept section="foo,bar,etc"

Offline

#20 2006-01-30 18:44:52

Dawk
Member
Registered: 2005-02-22
Posts: 74

Re: [plugin] [ORPHAN] ajw_clean_feed

oooh, that would be too easy & perfect :)

How difficult? I don’t know where to start?

Offline

#21 2006-01-30 18:48:18

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_clean_feed

Not sure; gonna hafta take a look at it – gimme a bit…

Offline

#22 2006-01-31 20:42:50

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [plugin] [ORPHAN] ajw_clean_feed

Andrew wrote: not the meta auto-discovery rss link plugins.

Where are these clean feed auto-discovery plugins (I think that’s what’s being suggested there)? Can’t hit one on a search to save my life.

Last edited by Destry (2006-01-31 20:44:01)

Offline

#23 2006-01-31 20:53:20

Andrew
Plugin Author
Registered: 2004-02-23
Posts: 730

Re: [plugin] [ORPHAN] ajw_clean_feed

I don’t think there really are any, since it’s more a matter of just adding the link with a dynamic url to the <head> in your header template:

<pre style=“overflow:auto”> <link rel="alternate" type="application/rss+xml" title="RSS" href="<txp:ajw_clean_feed_link url_only="y" sitewide="y" flavor="rss" />" /> <link rel="alternate" type="application/atom+xml" title="Atom" href="<txp:ajw_clean_feed_link url_only="y" sitewide="y" flavor="atom" />" /> </pre>

Afaik, that should work.

Last edited by Andrew (2006-01-31 20:59:12)

Offline

#24 2006-01-31 21:24:44

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,912
Website

Re: [plugin] [ORPHAN] ajw_clean_feed

That does work.

I can also just paste in the generated clean URL and it works exactly the same; hence, a bit less code, for example:

<code><link rel=“alternate” type=“application/rss+xml” href=“http://site.tld/category/catSAC/rss/” title=“SAC Reading and Use” /></code>

One thing I notice is that no matter what category I might be generating a feed for (and this is the case either by your method above or by the way I just tried it here), there is no title being pulled in the saved Live Bookmarks link; no matter which feed it is, it’s always just showing the site name “My Site”. Personally speaking, I don’t mind editing these by hand, but from a usability standpoint (and especially newbies who may be just consuming RSS for the first time), it could be a stickler.

I’ve tried moving things around but no matter what I can’t get the title to transfer over into the saved feed link properties. (Come to think of it, I can’t recall if that happened before with the default or not.)

Also, but not as critical, it would be the cherry on top if for a category (“tips”) in a section (“journal”) one could get a feed path like <code>http://site.tld/journal/tips/rss/</code>

Otherwise, Andrew, much better than it was.

Last edited by Destry (2006-01-31 21:45:21)

Offline

Board footer

Powered by FluxBB