Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#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
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:
<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
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
Re: [plugin] [ORPHAN] ajw_clean_feed
Destry wrote: (Come to think of it, I can’t recall if that happened before with the default or not.)
Nope. Just checked. Title didn’t pass by default method either (unless I was doing something wrong). So, I guess if you can get the title of each feed link to pass to the Live Bookmarks properties (or whatever tool people use), you will be King. (still are, but you know what I mean) ;)
EDIT: Actually, I might be barking up the wrong tree. It’s the “Name” property in Live Bookmarks I was hoping to get filled by the title attribute of the feed, but maybe that’s not even possible or connected. Sure wish there was a way to do it though.
Last edited by Destry (2006-01-31 21:53:43)
Offline
#26 2006-01-31 21:45:47
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] ajw_clean_feed
> 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 http://site.tld/journal/tips/rss
Well, here’s where it gets tricky. In order to do that, the url would probably have to be http://site.tld/journal/category/tips/rss, since there’s no way for me to know if the url you’re giving me is a clean url for an article titled ‘tips’ in section ‘journal’ or the category ‘tips’ within ‘journal’. Objections? (still not sure if it’s entirely feasible, but willing to look into it)
Offline
#27 2006-01-31 21:50:12
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] ajw_clean_feed
Destry wrote: (Come to think of it, I can’t recall if that happened before with the default or not.)
I think (in Firefox at least) it just pulls the page title for the page you’re currently viewing when you click the live bookmarks icon.
Last edited by Andrew (2006-01-31 21:50:52)
Offline
Re: [plugin] [ORPHAN] ajw_clean_feed
Andrew wrote: Well, here’s where it gets tricky. In order to do that, the url would probably have to be http://site.tld/journal/category/tips/rss, since there’s no way for me to know if the url you’re giving me is a clean url for an article titled ‘tips’ in section ‘journal’ or the category ‘tips’ within ‘journal’. Objections? (still not sure if it’s entirely feasible, but willing to look into it)
No, don’t bother just for me. I don’t use Categories in the URLs, which for me is a good thing as I seem to edit my Categories fairly regularly. I’ll stick to <code>http://site.tld/category/tips/rss</code>, which will be fine. Thanks again for this.
As for the title situation. I’m using Firefox/Sage. The only identifier in the “name” of feed link properties (in Live Bookmarks) that gets passed (no matter which feed link is being saved) is my site name, Wion Design, which is definitely not the name of my various Pages. The only place I have Wion Design written anywhere is in my admin preferences field for “Site name”. The site name is, of course, too generic for every feed title.
We hit a page break in the thread here, so in case you missed my previous post: I tried checking this title situation with default TxP feed link behavior (sans plugin), and it’s the same thing…no title of any kind is passed to the link properties in Firefox from TxP. FWIW
Offline
#29 2006-02-01 06:30:34
- Andrew
- Plugin Author

- Registered: 2004-02-23
- Posts: 730
Re: [plugin] [ORPHAN] ajw_clean_feed
Well I’m glad to hear the plugin is working well. I did uncover one little bug in ajw_clean_feed_link: when sitewide=“n” under section top-level pages, it still gives the sitewide feed link. I’ll hafta fix that.
Re: feed titles in live bookmarks etc, hm… I wonder what dictates it, if it’s browser-specific or if there’s a way to override.
Offline
#30 2006-04-10 06:33:05
- Geewiz
- New Member
- Registered: 2006-04-10
- Posts: 2
Re: [plugin] [ORPHAN] ajw_clean_feed
Andrew wrote:
I did uncover one little bug in
ajw_clean_feed_link: when sitewide=“n” under section top-level pages, it still gives the sitewide feed link. I’ll hafta fix that.
I’m experiencing this bug too. When do you plan to publish a fix?
Best regards,
JochenOffline