Feeds per category?

Get help with installation and running PivotX 2.0.x here. Please do not post Extension or Theme related questions here.

Feeds per category?

Postby ptr » Thu Apr 03, 2008 1:05 pm

Is it possible to generate a XML feed for just one category? And if it is, can someone explain how to do it?
ptr
PivotX Team
 
Posts: 78
Joined: Sun Dec 16, 2007 2:53 pm

Re: Feeds per category?

Postby hansfn » Thu Apr 03, 2008 7:15 pm

The feeds are very flexible in PivotX, but not documented yet. Let's start here and when it's understandable, I'll add it to the wiki:

-----

Feed URLs

All feed URLs are starting with selecting the type - "rss" or "atom":

Code: Select all
example.org/index.php?feed=type

Then you can select which category, weblog or author to display content from

Code: Select all
example.org/index.php?feed=type&c=catid
example.org/index.php?feed=type&w=weblogid
example.org/index.php?feed=type&u=authorid

(Author filtering was added in revision 2201/is available in PivotX 2.1 and later.)

Then you can select how many items to include - the default is 10:

Code: Select all
example.org/index.php?feed=type&n=15

Finally, the default content to display is entries, but if you want comments you can add "&comm" to the end the feed URL.

Code: Select all
example.org/index.php?feed=type&comm
example.org/index.php?feed=type&e=uid&comm

will display all the latest comments for the site or the comments for an entry.

You can also combine the parameters for example to select entries by an author and in a specific category ...

PS! Don't forget to replace "&" with "&" in the URLs to get valid HTML. And, if you have renamed your index.php to something else, you must update the URLs above.
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Feeds per category?

Postby ptr » Thu Apr 03, 2008 9:54 pm

Great Hansfn! Thanks a lot.

I'm very busy creating and porting new themes and have a lot of questions. Most of the time I ask Bob for help but I guess it's a good thing to publish more of them over here.
ptr
PivotX Team
 
Posts: 78
Joined: Sun Dec 16, 2007 2:53 pm

Re: Feeds per category?

Postby vengoroso » Fri Apr 04, 2008 8:51 am

hansfn wrote:Then you select which entry, category or weblog to display content from
Code: Select all
example.org/index.php?feed=type&e=uid
example.org/index.php?feed=type&w=catid
example.org/index.php?feed=type&w=weblogid



I guess you mean
Code: Select all
example.org/index.php?feed=type&c=catid

with a c instead of a w for the categories.
vengoroso
 
Posts: 22
Joined: Thu Dec 06, 2007 7:19 pm

Re: Feeds per category?

Postby hansfn » Fri Apr 04, 2008 11:48 am

Thx, you are of course correct. (I have corrected my post above.)
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Feeds per category?

Postby ankedesign » Tue Jul 07, 2009 3:06 pm

Thank you for this very clear overview.
Am i right that it isn't added to the book.pivotx.net documentation yet? (couldn't find it at a first glance)
Maybe now is the time to also add it there.

Thank you!
Anke
ankedesign
 
Posts: 21
Joined: Sun Oct 12, 2008 1:51 pm

Re: Feeds per category?

Postby FO54 » Mon May 17, 2010 7:32 pm

Hello,

I am not able to filter my RSS articles based on author. I read that Author filtering was available in pivot 2.1.
So i upgraded to 2.1. beta3, but when i filter on author (example.org/index.php?feed=type&u=authorid) the feed is empty.
The normal feed is working fine, also filtering on catergory for example is now problem.

What can be wrong ?

Thanks
With kind regards,

Freek
FO54
 
Posts: 2
Joined: Mon May 17, 2010 7:25 pm

Re: Feeds per category?

Postby hansfn » Mon May 17, 2010 7:46 pm

I don't remember when the author filtering started to work. You could try 2.1.0 beta4 or beta5 - ref http://pivotx.net/files/
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Re: Feeds per category?

Postby FO54 » Tue May 18, 2010 5:05 pm

Hello Hans,

I updated to beta 5 but I'm still not able to filter on author in my rss feed
My config is, PHP version: 5.0.32

What i noticed was that it does work in my offline pivotx installation on my local computer. The PHP version witch is running local is 5.0.45

Thank you
With kind regards,
Freek
FO54
 
Posts: 2
Joined: Mon May 17, 2010 7:25 pm

Re: Feeds per category?

Postby hansfn » Tue May 18, 2010 5:33 pm

You are sure that you use the correct username and so on? It sounds very unlikely that the PHP version is the problem, but please turn on PivotX debug and, if possible, check the web server error log.
hansfn
Developer
 
Posts: 3282
Joined: Sun Nov 25, 2007 7:48 pm
Location: Molde, Norway

Next

Return to 2.x Support Forum

Who is online

Users browsing this forum: No registered users and 3 guests

cron