Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#631 2009-05-09 01:49:06
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Can anyone confirm if rss_unlimited_categories_related is working with v0.7.4p4 ?
Or maybe I am just using it wrong. I get the titles of the related articles, but can’t get the category names themselves to show up.
Can anyone provide a sample form that should work for this? I can’t figure out which tag (if any) to represent the category name itself.
Last edited by floodfish (2009-05-11 18:32:34)
Offline
#632 2009-05-12 17:51:06
- MattH
- Member
- From: Ann Arbor, MI
- Registered: 2004-10-17
- Posts: 30
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
So, I’ve been poking around in the SQL to get articles with all of the specified categories instead of just one, but I can’t figure out how.
The query as it exists now is:
SELECT DISTINCT t.ID FROM textpattern as t
LEFT JOIN textpattern_category as tc ON t.ID = tc.article_id
LEFT JOIN txp_category as cat ON cat.id = tc.category_id
WHERE 1=1 AND ( (section = 'sectioname') ) AND Status=4
AND ( cat.name = 'artistname' OR cat.name = 'blog' )
and Posted <= now()
the most relevant part being:
AND ( cat.name = 'artistname' OR cat.name = 'blog' )
However, there doesn’t seem to be an easy way to change that OR to function as an AND. Any suggestions / snippets would be very much appreciated.
In the plugin, this code is built on and around lines 396 and 430.
Last edited by MattH (2009-05-12 17:52:32)
Offline
#633 2009-05-27 20:59:36
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Matt, would grouping your categories and using everything with the same parent be any help?
Offline
#634 2009-05-27 22:13:38
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
floodfish wrote:
Can anyone confirm if rss_unlimited_categories_related is working with v0.7.4p4 ?
Recently updated site from 4.0.6 with rss_uc0.74 to 4.0.8 with rss_uc7.4p4 – works good, but didn’t tested global variables fixes yet.
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?
Offline
#635 2009-05-28 20:33:13
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Is it possible to use rss_unlimited_categories_filedunder in such a way that it doesn’t link the list entries? (plain text only?)
Offline
#636 2009-05-28 20:43:18
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
dl33, I don’t think so. but could be a relatively easy hack to change the code, somewhere around lines 190-199
Offline
#637 2009-05-28 20:46:03
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
floodfish: the problem is I need both: a linked version and a plain version. There would need to be a new attribute such as linked=“0”… Any ideas?
Offline
#638 2009-05-30 21:47:10
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
dl33, thanks for idea.
rss_unlimited_categories patch 0.7.4p5
Changes:
0.7.4p5
- add “linked” attribute to rss_unlimited_categories_filedunder tag.
- add “delim” attribute to rss_unlimited_categories_filedunder tag.
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#639 2009-05-31 21:20:35
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
MattH wrote:
Is there a way to use rss_uc to retrieve articles with multiple categories using “AND” instead of “OR”? That is, can I request articles of categories 1 and 2?
Now added new attribute andcategory, use it.
rss_unlimited_categories patch 0.7.4p6
Changes:
0.7.4p6
- add “andcategory” attribute to rss_unlimited_categories_article_list tag.
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#640 2009-05-31 23:23:47
- MattH
- Member
- From: Ann Arbor, MI
- Registered: 2004-10-17
- Posts: 30
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Thank you very much, makss. Can I make a small contribution/donation somewhere?
Offline
#641 2009-06-02 06:04:59
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
(I feel silly asking this, as I presume the answer is dead obvious to everyone but me, but …)
When using rss_unlimited_categories_article_list or rss_unlimited_categories_related how do I make the name of the category display? I can pull up articles, but they are not visibly sorted by category, which I’m pretty sure is the whole point.
I need the name of a category, followed by appropriate articles in that category, then the name of the next category, etc.
Should I be using if_different? should I be using txp:category ?
Last edited by floodfish (2009-06-02 15:30:22)
Offline
#642 2009-06-05 05:59:39
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
So, I am pretty sure that rss_unlimited_categories doesn’t allow use of, nor offers a replacement for, the txp:category tag, at least when used in the context of txp:if_different or txp:article_custom.
Would anyone else find it useful to have an tag (called, perhaps, rss_unlimited_category) that would invoke the category name/id for using with txp:if_different and txp:article_custom?
makss, hoho, and anyone else doing dev work on this—does adding this strike you as necessary and/or possible?
Offline
#643 2009-06-16 21:02:13
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Probably related to my earlier gripes.
The following code would work with old non-unlimited categories:
<txp:article_custom section="my-section" status="sticky" limit="1" category="my-category" />
I’d think one ought to be able to reproduce this with rss_unlimited_categories_article_list. But that doesn’t seem to have a status attribute or otherwise be able to see sticky articles.
Any ideas/advice?
Last edited by floodfish (2009-06-16 22:40:59)
Offline
#644 2009-06-17 07:46:15
- makss
- Plugin Author
- From: Ukraine
- Registered: 2008-10-21
- Posts: 355
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
floodfish wrote:
<txp:article_custom section="my-section" status="sticky" limit="1" category="my-category" />
I’d think one ought to be able to reproduce this with
rss_unlimited_categories_article_list. But that doesn’t seem to have a status attribute or otherwise be able to see sticky articles.
rss_unlimited_categories patch 0.7.4p7
Changes:
0.7.4p7
- add “status” attribute to rss_unlimited_categories_article_list tag.
aks_cron : Cron inside Textpattern | aks_article : extended article_custom tag
aks_cache : cache for TxP | aks_dragdrop : Drag&Drop categories (article, link, image, file)
Offline
#645 2009-06-17 07:51:13
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Hi makss,
Have you officially adopted this plugin? If you did, it would be cool if you open a new thread so as to have contol over the first post where the download link appears.
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline