Title: Sortable Subsections
Last modified: January 29, 2022

---

# Sortable Subsections

 *  [wescleveland](https://wordpress.org/support/users/wescleveland/)
 * (@wescleveland)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sortable-subsections/)
 * I’m new to using the AdminPageFramework but am thoroughly enjoying it so far.
   I’m kinda stumped. I’m trying to create a Settings page that has tabs and inside
   one of the tabs are collapsible sections. Inside each of those collapsible sections,
   I want a set of sortable collapsible sections (subsections) that contain fields
   that are unique for each of the subsections. The structure would look something
   like:
 *     ```
       Settings
          +-->General (Tab)
          |   +-->Sections & fields
          +-->Forms (Tab)
          |   +-->Form 1 (Collapsible Section)
          |   |   +-->Field 1 (Sortable Collapsible Section)
          |   |   |   +-->Field 1 Attribute 1 (checkbox)
          |   |   |   +-->Field 1 Attribute 2 (text)
          |   |   |   +-->more fields
          |   |   +-->Field 2 (Sortable Collapsible Section)
          |   |   |   +-->Field 2 Attribute 1 (radio)
          |   |   |   +-->Field 2 Attribute 2 (checkbox)
          |   |   |   +-->Field 2 Attribute 3 (text)
          |   |   |   +-->more field
          |   |   +-->Field 3 (Sortable Collapsible Section)
          |   |   |   +-->more fields
          +-->Notifications (Tab)
          ...
       ```
   
 * The **Forms** tab is the one of interest. Hopefully you get the idea. Can this
   be done with AdminPageFramework? How would I go about making it happen?
 * Thanks in advance so much.

Viewing 1 replies (of 1 total)

 *  Plugin Author [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * (@miunosoft)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/sortable-subsections/#post-15307458)
 * That’s not natively supported with the current design, sorry. You need to make
   the sections sortable with a JavaScript script and sort the section definition
   array by yourself.
 * I’ve posted [an example plugin](https://gist.github.com/michaeluno/6321c0e28b3c7a4d63cbdf403a026ef3).
   When you generate your own build of the framework files, you need to replace `
   admin-page-framework` with your text domain in the example file, `custom-sortable-
   sections.js`.

Viewing 1 replies (of 1 total)

The topic ‘Sortable Subsections’ is closed to new replies.

 * ![](https://ps.w.org/admin-page-framework/assets/icon-256x256.png?rev=998199)
 * [Admin Page Framework](https://wordpress.org/plugins/admin-page-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/admin-page-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/admin-page-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/admin-page-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/admin-page-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/admin-page-framework/reviews/)

## Tags

 * [admin page](https://wordpress.org/support/topic-tag/admin-page/)
 * [collapsible](https://wordpress.org/support/topic-tag/collapsible/)
 * [form](https://wordpress.org/support/topic-tag/form/)
 * [sortable](https://wordpress.org/support/topic-tag/sortable/)

 * 1 reply
 * 2 participants
 * Last reply from: [miunosoft](https://wordpress.org/support/users/miunosoft/)
 * Last activity: [4 years, 4 months ago](https://wordpress.org/support/topic/sortable-subsections/#post-15307458)
 * Status: not resolved