We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

Example addon that leverages common settings UI patterns for modern EE addons?

Development and Programming

User BULfYYMv's avatar
User BULfYYMv
108 posts
3 months ago
User BULfYYMv's avatar User BULfYYMv

Does anyone have an example addon that leverages common settings UI patterns for modern EE addons? I am finding that while Claude can put together a working settings panel there’s usually a bit of massaging that has to take place.

       
JCOGS Design's avatar
JCOGS Design
148 posts
3 months ago
JCOGS Design's avatar JCOGS Design

You might want to chat to @mithra62 - he’s the only person I know who seems to have a handle on how CP layouts work (if that is what you are groping for).

       
User BULfYYMv's avatar
User BULfYYMv
108 posts
3 months ago
User BULfYYMv's avatar User BULfYYMv

Thanks for the recommendation. @mithra62 You have any example code for Addon CP Settings layouts? Is there some kind of a framework being leveraged there?

       
mithra62's avatar
mithra62
73 posts
3 months ago
mithra62's avatar mithra62

Oh boy… so much…

       
mithra62's avatar
mithra62
73 posts
3 months ago
mithra62's avatar mithra62
  1. Use the CP Routes. They’re very handy for keeping your code readable.
  2. For UI and layout/structure, lean into the Shared Form layer. you can use both raw arrays and/or a full object layer. Google is your friend here.
  3. Try to stay within the output from the above and the Table object stuff. It’ll keep things consistent insofar as look and feel with EE structure.
  4. A sidebar makes sense and is legit helpful in structuring your UI layer
  5. Take advantage of flash messages and the alert layer. Worth it.
       
mithra62's avatar
mithra62
73 posts
3 months ago
mithra62's avatar mithra62

Take a look at the Debug Toolbar stuff. Definitely has stuff you won’t want, but insofar as structure and scaffolding, you should have some examples. Settings and form generation at the least 🙂

       
mithra62's avatar
mithra62
73 posts
3 months ago
mithra62's avatar mithra62

<https://github.com/mithra62/ee_debug_toolbar/blob/master/system/user/addons/eedt/ControlPanel/Routes/Settings.php>

       
mithra62's avatar
mithra62
73 posts
2 months ago
mithra62's avatar mithra62

put a thing together with words and punctuation 🙂 <https://mithra62.com/writing/stop-fighting-the-expressionengine-control-panel>

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.