Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#91 2011-03-09 21:59:41
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
Nora, I’m glad you like my improvements. That you come here for letting me know is reward enough.
If still you feel like giving something, I’m sure you know organizations with a donation button.
Thanks for stopping by! :)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: stm_article_order: Arbitrary sort order for your articles
Well Uli — just know that your contribution is sincerely appreciated! I found maybe an interesting little use for stm_article_order, for ordering sections in a nav menu, which I posted in another thread
I know there are other plugins and ways to do it, but I like the interface of stm_article_order, so I thought I’d stick with it for sections too.
Offline
#93 2011-03-10 17:25:43
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
The longer I think about it the more I like the idea of having one tab for sorting everything! And this can probably be extended for sorting categories, too.
The resort of having another means of sorting sections made me post an idea for esq_sectiosort I had weeks ago: custom fields for sections (again converting something ;)
Last edited by uli (2011-03-10 17:27:40)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: stm_article_order: Arbitrary sort order for your articles
The longer I think about it the more I like the idea of having one tab for sorting everything! And this can probably be extended for sorting categories, too.
+1
nice plug-in by the way..
Last edited by jens31 (2011-03-14 16:13:50)
Offline
#95 2011-03-14 17:12:44
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: stm_article_order: Arbitrary sort order for your articles
The longer I think about it the more I like the idea of having one tab for sorting everything! And this can probably be extended for sorting categories, too.
and another +1!
I’d like to have this for sorting the links (for each link-category, like sorting the articles via drag’n‘drop per section) – today this is not very comfortable :-)
Offline
#96 2011-03-14 17:40:52
- phuture303
- Member
- Registered: 2008-09-14
- Posts: 127
Re: stm_article_order: Arbitrary sort order for your articles
I have just another question: Actually, the newest article becomes the first article in the backend of stm_ao – like:
ID 35 article 3 in section A
ID 15 article 2 in section A
ID 10 Article 1 in section A
Is is possible that the “automatic positioning” is the other way round? Like:
ID 10 Article 1 in section A
ID 15 article 2 in section A
ID 35 article 3 in section A
This would help me a lot!
Thanks in advance
David
Last edited by phuture303 (2011-03-14 17:41:17)
Offline
#97 2011-03-14 21:46:45
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
phuture303 wrote:
Is is possible that the “automatic positioning” is the other way round?
Never tried it, but it should be feasible. However, do a MySQL backup of the database before, just in case anything goes awry. There wouldn’t be v0.2.4 of the plugin if I hadn’t backed up my db ;)
Open the plugin in a text editor, go to line 40 (at least it’s 40 in my copy), and find at the end of the line where it says
order by position"); (It’s the sole occurrence.)
Add asc after position so now the line ends
order by position asc");
Press “Save”.
If the results on the front side of your site look south topmost, alter the order value of the Txp tags that are using position from asc to desc and vice versa.
Last edited by uli (2011-03-14 21:48:07)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#98 2011-03-14 23:32:42
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
I wrote:
The longer I think about it the more I like the idea of having one tab for sorting everything! And this can probably be extended for sorting categories, too.
jens31 and phuture303, as a response to both your votes: I said the above as a reply to Nora’s/nabrown76’s post #92. Well, rather after reading the post she linked. I think drag’n‘drop sorting of everything became possible with a good portion of thinking out of the box that Nora proved she’s capable of and was kind enough to share.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
Re: stm_article_order: Arbitrary sort order for your articles
I will submit the tip to txptips in a more organized fashion soon!
Offline
#100 2011-03-15 02:40:33
Re: stm_article_order: Arbitrary sort order for your articles
@Nora – yes that would be great and very helpful!
Offline
#101 2011-03-19 10:10:49
Re: stm_article_order: Arbitrary sort order for your articles
This looks great, thank you uli !
Just curious if this can be done / easily tweaked / on a category basis instead of sections ?
Re-arranging categories ? And why not re-arranging articles within categories ?
Thanks !
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
#102 2011-03-19 14:04:40
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
hablablow wrote:
Re-arranging categories ?
Guilleaume, you you can go ahead and sort categories if you follow Nora’s tip she linked to some posts above (if that’s what you have in mind).
Re your other questions: I can’t tell offhand if replacing sections by categories would work, I’m just another designer “coding”. For me this would mean to maintain two versions of the code, a fact that I consider as not too enticing.
What’d be easily doable, though, is inserting another CSS class for the category an article belongs to, so that you could have e.g. color codes for categories. That’s what I had in mind for the next release, at least if there will be another one.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#103 2011-03-19 14:27:35
Re: stm_article_order: Arbitrary sort order for your articles
Vielen dank für deine Antwort Uli.
In fact yes I would like to re-arrange categories and so replace the built-in section feature…
And so be able to re-arrange categories order.
If you don’t mind, I’ll put my designer’s hands into your code and try to walk through the “categories way”…
If someone wishes to do the same, I’ll be glad to share experience and do this the many brains / many hands way…
Last edited by hablablow (2011-03-19 14:30:52)
_
_I plant seeds for future visions. Farmer of your eyes. Subliminal engineer of your minds. eion founder__
Offline
#104 2011-05-26 11:30:04
- Teemu
- Member
- From: Shanghai
- Registered: 2010-04-27
- Posts: 60
Re: stm_article_order: Arbitrary sort order for your articles
I’m wondering if I have missed something or this plugin has some compatibility issues?
I installed the latest v0.2.4, enabled it and added ‘position asc’ as a sort value to my article tag. However it gives me error in the frontend:
Tag error: <txp:article sort=“position asc” /> -> Textpattern Warning: Unknown column ‘position’ in ‘order clause’
I’m running TXP 4.4.0, MLP and several plugins like adi_menu etc.
Last edited by Teemu (2011-05-26 11:32:24)
Offline
#105 2011-05-26 11:38:10
- uli
- Moderator

- From: Cologne
- Registered: 2006-08-15
- Posts: 4,319
Re: stm_article_order: Arbitrary sort order for your articles
Did you use the plugin, i.e. pressed the Save button at least once?
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline