Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [archived] ort_article_psort - Sorts articles by numeric customField
You should be able to do a numeric sort with standard article tags like this:
<txp:article sortby="(custom_1+0)" />
Just replace custom_1 with the field you want to sort by.
Offline
#14 2007-04-14 09:34:18
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: [archived] ort_article_psort - Sorts articles by numeric customField
wilshire wrote:
You should be able to do a numeric sort with standard article tags like this:
<txp:article sortby="(custom_1+0)" />
Just replace custom_1 with the field you want to sort by.
Does the “+0” bit overcome the problems 1ukaz talks about?
Last edited by FireFusion (2007-04-14 15:59:49)
Offline
#15 2007-04-14 16:00:33
- FireFusion
- Member
- Registered: 2005-05-10
- Posts: 698
Re: [archived] ort_article_psort - Sorts articles by numeric customField
Doesn’t matter, it does work (with decimals to).
Offline
Re: [archived] ort_article_psort - Sorts articles by numeric customField
Awesome it’s taken me ages to find this!! Nice.
Reuben Whitehouse ~ Rocketfuelled
Offline
Re: [archived] ort_article_psort - Sorts articles by numeric customField
Download links seem to be broken… :(
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#18 2008-05-19 03:53:33
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: [archived] ort_article_psort - Sorts articles by numeric customField
Does anyone have a copy of this plugin to upload it somewhere please?
P.S. Is there any alternative for displaying a list of most popular articles beside combination of ort_article_psort and dzd_counter_view?
Offline
#19 2008-05-19 04:03:45
- Ruhh
- Member
- From: dakota dunes
- Registered: 2008-01-20
- Posts: 305
Re: [archived] ort_article_psort - Sorts articles by numeric customField
You might try this plugin: bit_article_hitlist
I haven’t tried it out yet.
<txp:Ruhh />
Offline
Re: [archived] ort_article_psort - Sorts articles by numeric customField
shi wrote:
P.S. Is there any alternative for displaying a list of most popular articles beside combination of ort_article_psort and dzd_counter_view?
You don’t really need ort_article_psort. I use dzd_counter_view and a simple <txp:article_custom sortby="(custom_1+0)" />
where custom_1
is the custom field used by the plugin. And it works perfectly.
The only thing is that I’d like to show only a given time range of articles, like “last week most popular articles”, but I don’t know how…
Happily served with Txp: Strampelli.net, Brain Essence, NicolaTranfaglia.com…
Offline
#21 2008-05-19 17:39:50
- shi
- Member
- Registered: 2005-12-09
- Posts: 34
Re: [archived] ort_article_psort - Sorts articles by numeric customField
Thank you both, it works!
P.S. One thing I’ve noticed about dzd_counter_view is that sometimes it counts several hits when I reload the page…
Offline