Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2012-02-22 11:35:01
- leafy_loader
- Member
- Registered: 2008-09-25
- Posts: 96
Control section order
The main navigation on my site is created by using a list of the sections. But I have to manually enter names within the code to control the order and which ones appear and which don’t etc.
Is there a plugin that will allow me to do this via the admin interface?
Offline
#2 2012-02-22 11:39:37
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Control section order
Yup, esq_sectionsort.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#3 2012-02-22 12:45:36
- leafy_loader
- Member
- Registered: 2008-09-25
- Posts: 96
Re: Control section order
Thanks, that almost does the job but does not allow me to exclude sections
Offline
#4 2012-02-22 12:50:58
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Control section order
You don’t need a plugin for excluding sections, section_list has its own exclude
parameter for that.
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#5 2012-02-22 18:51:37
- leafy_loader
- Member
- Registered: 2008-09-25
- Posts: 96
Re: Control section order
section_list also has a parameter to list the sections in a particular order in which case I wouldn’t need a plugin. I want to be able to control the order and excludes via the admin interface. The plugin you recommend does not allow for both.
Do you know if one exists, I can’t find one :(
Offline
#6 2012-02-22 20:03:44
- uli
- Moderator
- From: Cologne
- Registered: 2006-08-15
- Posts: 4,306
Re: Control section order
You probably want a list that dynamically adapts its output whenever a new section is created. That’s why I mentioned the sectionsort plugin.
There’s no under-one-umbrella solution published for what you want, that’s for sure.
If it’s for user privilege’s reasons and/or for ease of use you can set up a hidden (not yet available ;) sticky article for the exclusions and let your users list their sections there, without exposing your code to potential damage. You then would insert this article via an article_custom tag equipped with an ID into/as the exclude value of your section_list.
Last edited by uli (2012-02-22 20:15:56)
In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links
Offline
#7 2012-02-22 20:24:27
- leafy_loader
- Member
- Registered: 2008-09-25
- Posts: 96
Re: Control section order
It’s for ease of use, I’m setting it up for a non techie person so trying to keep things simple. Thanks for your help and advice.
Offline
Re: Control section order
Did you try adi_menu ?
Offline
Re: Control section order
If your sections have sticky pages you could use a custom_field called ‘priority’ with numerical values to control the sort order. Leave the custom_field empty for sections you want to exclude. I’ve used that method on a very large textpattern site and it works well.
Offline
Pages: 1