Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#685 2009-10-22 22:55:18
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
MattD wrote:
Take a look at txp:if_different
Thank you Matt. I had just written up a whole mess of code and figured on another hour before I could get it working.
It can be so simple sometimes. :)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#686 2009-11-09 06:11:00
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I’m using sortby
on a custom_field to order my article lists. The custom field contains a number. For the following 7 articles I get this order:
10
3
4
41
5
6
9
It is obviously order by the first digit. Is their a way to get:
3
4
5
6
9
10
41
Beyond that, I sometimes have alphanumeric input like:
1a
1b
3e
3f
Ideally a fix for the first issues would also allow for these alphanumeric bits too.
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#687 2009-11-09 06:20:31
Offline
#688 2009-11-09 06:27:15
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
sort="custom_1+0"
Yes! Thank you.
Tho, u use it to store strings also.
Oh, such as: 1a, 1b, 3e, 3f?
I wonder if there is a way to do both? Seems not. :(
Edit: When using custom_1+0
It appears to also respect letters. BUT, I fear that it is only falling back on using LastMod to sort when letters are present. I don’t know if that is how it works but it seems that it does.
Last edited by whaleen (2009-11-09 06:32:57)
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#689 2009-11-11 03:55:02
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
categorylogic="AND"
appears to not be working. I’m up to the most recent patch. 0.7.4p13b
I use a series of these (one per each city / ‘bee-cave’ in this instance):
<txp:rss_uc_article_list
section=“centraltexas”
andcategory=“bee-cave,planning-zoning-commission”
category=“architecture”
categorylogic=“AND”
form=“report_item_centraltexas”
time=“any”
sortby=“custom_12+0”
sortdir=“asc”
filter=“1”
filterfield=“custom_13”
filtername=“pubdate”
/>
etc… (up to 20 or 30 of these listed consecutively in a page
, one for each city)
category
is loaded from a posted variable and matches an existing rss_unlimited_cat.architecture
in this case.- The
filter
is a date stored incustom_13
so in the URL you’ll havesite_name.com/pubdate/eq/2009-11-09
and all articles that have2009-11-09
incustom_13
are shown. This appears to always work.
Problems:
- Upon posting a category, some cities will show all articles that belong to that selected
category
even when theandcategory
categories are not matched. Thefilter
is still adhered to. - Upon posting a category, some cities display articles which do not belong to that category.
It’s difficult to isolate the problem because some work and some don’t and there is nothing different about each one except the category
that gets posted.
Question:
categorylogic="AND"
appears to not be working. Is this true?
Tag trace for previously posted code:
<txp:rss_uc_article_list
section=“centraltexas”
andcategory=“bee-cave,planning-zoning-commission”
category=“architecture”
categorylogic=“AND”
form=“report_item_centraltexas”
time=“any”
sortby=“custom_12+0”
sortdir=“asc”
filter=“1”
filterfield=“custom_13”
filtername=“pubdate”
/> [SQL (0.00024604797363281): 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 = ‘centraltexas’) ) AND Status=4 AND ( cat.name = ‘architecture’ ) AND custom_13 = ’2009-11-09’ ] [SQL (7.0810317993164E-5): 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 = ‘centraltexas’) ) AND Status=4 AND ( cat.name = ‘bee-cave’ OR cat.name = ‘planning-zoning-commission’ ) AND custom_13 = ’2009-11-09’ GROUP BY t.ID HAVING count(*)=2] [SQL (0.00022196769714355): select count(*) from textpattern where 1=1 AND ID in(899,898,900,901,902,903,904,907,908,909,910,911,912,913,914,915,922,923) AND ID<>’‘] [SQL (0.00081181526184082): select *, unix_timestamp(Posted) as uPosted, unix_timestamp(Expires) as uExpires, unix_timestamp(LastMod) as uLastMod from textpattern where 1=1 AND ID in(899,898,900,901,902,903,904,907,908,909,910,911,912,913,914,915,922,923) AND ID<>’‘ ORDER BY custom_12+0 asc limit 0, 999]
txtstrap (Textpattern + Twitter Bootstrap + etc…)
Offline
#690 2009-11-25 21:20:30
- hal.subs
- New Member
- Registered: 2009-11-12
- Posts: 4
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I am getting an error when trying to download this plugin? Not sure if this is the place to post this?
“Parse error: syntax error, unexpected T_DOUBLE_ARROW, expecting ‘)’ in /home/wilshone/public_html/stats/var/last.php on line 91”
Offline
#691 2009-11-25 22:39:45
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Wilshire’s site is down. You can try the Google cache*&q=cache%3Ahttp%3A%2F%2Fwww.wilshireone.com%2Ftxp%2Fdownloads%2Frss_unlimited_categories-0.7.4.php&btnG=Search&aq=f&oq=&aqi
Last edited by MattD (2009-11-25 22:40:07)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#692 2009-12-22 08:46:57
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
rss_unlimited_categories patch 0.7.4p15
Changes:
0.7.4p14
- add
weightmin
attribute torss_uc_cloud
tag.
0.7.4p15
- add support
publish_expired_articles
(TxP Preferences) for all tags.
Last edited by makss (2009-12-22 09:21:59)
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
#693 2010-01-05 19:22:33
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
I got the plugin working on txp 4.2, but I still see “Category 1” and “Category 2” selection menus above “Categorize”.
Aren’t they supposed to disappear?
Offline
#694 2010-01-07 20:08:42
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
jacknails wrote:
I got the plugin working on txp 4.2, but I still see “Category 1” and “Category 2” selection menus above “Categorize”.
Aren’t they supposed to disappear?
Now added this option.
rss_unlimited_categories patch 0.7.4p16
Changes:
0.7.4p16
- Added option “Hide `category1` and `category2`” See Extensions tab
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
#695 2010-01-07 21:59:48
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Very cool. Just checked and it works beautifully.
Thanks!
Offline
#696 2010-01-17 14:30:29
- afewimages
- Member
- Registered: 2009-12-23
- Posts: 33
Re: [plugin] [ORPHAN] rss_unlimited_categories - Unltd. Article Categories
Hi,
I have searched my brains out but could not find a really simple(i think) explanation for this one:
I have my categories seperated in parent and child ones. If an article falls in a subcat i made both subcat and parentcat ‘active’ so i can see both in a listing. BUT all the cats, child and parent are in the same listing <ul><li>.....</li></ul>
etc…. I want to achieve a real tree so: <ul><li><ul><li>...</li></ul></li></ul>
It must be possible with such a great plugin????
Steven.
Offline