Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Publish Sections for ExpressionEngine 7

Add sections to the publish screen using field label and instructions.

Useful for separating fields visually into groups where there are a large number of fields.

Screenshot

Requirements

Requires EE7.0+ and PHP 7.4

Installation

Download the add-on and unzip its contents. Copy entire publish_sections folder to your system/user/addons folder. On your EE backend, navigate to Developer > Addons (yoursite.com/admin.php?/cp/addons). Scroll down to the Uninstalled section. Find Publish Sections and click Install.

Setup

Create a field with the Publish Section fieldtype. Select a display style and an icon to go with it from the field settings. Optionally make the section collapsible from within the field settings. Add the field to your channel. Go to the channel layout and position the section where you'd like to appear.

Tip

To differentiate the field from other fields, you may prefix the field name with a one (or more) dashes. The dashes would be removed from the publish view.

License

Released under the MIT License. Copyright (c) 2023-2026 Sy Andersohn.

Icon names are from Font Awesome 6 Pro, which is licensed to your site as part of ExpressionEngine. This add-on ships only the icon names, not the font itself.

Changelog

1.0.0

  • Release

1.2.0

  • Added color picker to field settings
  • Added option to collapse fields within (below) the section
  • Cleaned up by removing javascript DOM restructuring

1.2.1

  • Updated styles

1.3.0

  • Security: field settings are now validated on save and re-checked on output. Previously the section colour, icon and display style were written into the publish screen unescaped, so anyone able to edit a field could inject script that ran in the Control Panel for every user who opened an entry.
  • Fixed section colour being ignored when entered without a leading "#". Colours are now stored without the "#" and normalised on output, matching how EE stores status and role colours.
  • Fixed PHP 8 warnings from fields saved before a setting existed, and deprecation notices from non-hex colour values.
  • Fixed the colour picker's accessible label rendering as "undefined".
  • Fixed the "Collapsible State" setting showing no selection by defaulting to "None".
  • Fixed collapse state persisting for sections that are no longer collapsible, and corrupt saved state disabling collapsing entirely.
  • Fixed "fa-fw" icon class typo so header icons are fixed width.
  • Section headings no longer animate on page load.
  • Added missing Large/Medium/Small translations.
  • Section headings are now HTML-escaped, so a field label containing "<" or "&" renders as typed instead of as markup.

About

Add sections to ExpressionEngine publish screen

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages