Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#25 2011-05-04 22:00:53

oliverker
Plugin Author
From: Huddersfield
Registered: 2008-07-14
Posts: 90
Website

Re: esq_sectionsort - Custom sorting of sections

Hi Mitch,

Uli – directed me to your plugin for a plug in I suggested, seems you are looking to add some extra fields like the sort value?
Is the SEO plugin I mention anything you could include?

Cheers
Oli

Offline

#26 2011-05-05 04:26:08

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

Hi Oli,

I checked out your thread, and the meta field(s) I plan on adding to the plugin functionality could definitely be used for SEO purposes. Hopefully I’ll have this out soon (I know I’ve said that before, not enough hours in the day lol).

P.S. That’s quite a quote from someone like Tim Van Damme! I remember seeing your TXP mobile theme a while ago, I might have to check it out. I assume it reverts to a normal theme when not on a mobile/touch device?

Last edited by radneck (2015-11-04 07:40:26)

Offline

#27 2011-11-15 12:15:31

Dorian Graph
New Member
From: Australia
Registered: 2010-10-26
Posts: 8
Website

Re: esq_sectionsort - Custom sorting of sections

I just wanted to say thank you! This is exactly what I needed.

Last edited by Dorian Graph (2011-11-15 12:15:51)

Offline

#28 2011-11-15 12:28:19

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

:)

Offline

#29 2013-09-26 07:13:03

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

It’s been quite a while, but this plugin has now been updated to support sorting of categories as well as sections, and now sports a drag and drop interface.

Textpattern 4.5.0+ required, tested up to 4.5.4.

This is a significant update, so please report any issues you come across.

This will likely be the last release for this plugin, and my last contribution to Textpattern (with the exception of bug fixes).

Last edited by radneck (2015-11-04 21:12:54)

Offline

#30 2013-10-03 18:35:54

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,306

Re: esq_sectionsort - Custom sorting of sections

Thanks, Mitch!

This weekend I’ll try if I can break anything. Drag and drop sounds great!

my last contribution to Textpattern

Sorry to hear that. Thanks anyway for your esq_ range of plugins and that you’ve been so responsive to our wishes!


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Offline

#31 2013-10-07 21:44:41

floodfish
Member
From: Brooklyn, NY
Registered: 2007-01-11
Posts: 155
Website

Re: esq_sectionsort - Custom sorting of sections

Thanks so much for the categories update! I just had a client request sortable categories, so really lucky timing for me.

Offline

#32 2013-10-10 06:05:32

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

Glad it could help!

Offline

#33 2013-11-11 16:36:49

jagorny
Member
From: Portland, OR
Registered: 2006-08-24
Posts: 39
Website

Re: esq_sectionsort - Custom sorting of sections

It appears that on the front-end, category sorting is sorting on the categorysort field as text and not as int.

For example,

1
10
11
12
13
14
2
3
4

This is on TXP 4.5.5

On the backend the categories and subcategories appear normally in the list.

EDIT** It’s the VARCHAR declaration in establishing both sectionsort and categorysort columns… Switching them to SMALLINT resolves the sort issue for categories – probably sections as well.

You would not see the impact of the sorting problem with less than 10 sections or categories/subcategories.

Last edited by jagorny (2013-11-11 16:49:08)

Offline

#34 2013-11-11 22:51:41

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

Hi Jacob,

Good catch.

The sort fields were set as VARCHAR back when it wasn’t drag and drop – i.e. users could enter their own sort values (alphabetic, numeric, whatever).

I’ve put out an update for this plugin that alters the sort fields to SMALLINT, while keeping your existing sort settings in tact.

Thanks for the bug report.

Last edited by radneck (2013-11-12 04:34:53)

Offline

#35 2014-12-02 15:45:03

anteante
New Member
Registered: 2012-04-11
Posts: 9

Re: esq_sectionsort - Custom sorting of sections

Thanks a lot for this plugin, very helpful!

I have one minor issue here (running on Textpattern 4.5.7): Sorting works as expected, but when I come back the section-tab in Textpattern, the sorting order has changed again; seems that it falls back “sections by creation date ascending”.

I could be wrong about the sorting criteria here, but it’s def not sort=“sectionsort”.

As said, this does not affect the sort order on the front end, but it’s somewhat irritating for clients.

Any chance to have the sections in the backend displays in regard to sort=“sectionsort”?

Offline

#36 2014-12-03 00:59:56

radneck
Plugin Author
Registered: 2005-07-03
Posts: 109

Re: esq_sectionsort - Custom sorting of sections

Hi anteante,

They should stay sorted.

I just downloaded a fresh copy of TXP, added a few sections and installed this plugin.
After moving sections around I went to another admin page, then back to the Sections page again, and everything was in the correct order.

  • Are you using the default admin theme?
  • Can you check in the txp_section table that the sectionsort column is being filled correctly.
  • How many sections do you have?
  • Is there any other plugins that could be conflicting?
  • Are there any errors showing in the console?

Offline

Board footer

Powered by FluxBB