J4 Issue ? ?
avatar mbabker
mbabker
20 Jun 2018

Adding docs noting how a user upgrading their sites to 3.9 would add the new modules to the admin control panel got me thinking, there are several modules which if a user unpublished would really make use of the backend pretty difficult. Primarily this is the Admin Menu, Title, and Toolbar modules, and to a lesser extent the Admin Submenu module (this one really impacts Hathor more than Isis, and is already gone in 4.0). Note we already go through some extra steps to ensure there's a login module for use on the backend in case someone manages to unpublish this one.

We should probably not have these as configurable modules in 4.0. My suggestion would be something similar to the hardcoded mod_feed instance in the com_postinstall messages view.

avatar mbabker mbabker - open - 20 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - change - 20 Jun 2018
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jun 2018
avatar joomla-cms-bot joomla-cms-bot - labeled - 20 Jun 2018
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2018
Status New Discussion
avatar franz-wohlkoenig franz-wohlkoenig - change - 20 Jun 2018
Category com_modules Templates (admin)
avatar brianteeman
brianteeman - comment - 20 Jun 2018

I understand what you are talking about and almost agree. The site builder might want to replace those modules with their own variants or perhaps an alternative admin template uses its own modules for this

avatar mbabker
mbabker - comment - 20 Jun 2018

Yeah, those are both legitimate concerns. Dropping the title module just creates some visual problems, so it's less of an issue, but dropping the menu and toolbar can make your backend unusable. So right now I kind of lean toward the "these are critical capabilities and maybe that means we should sacrifice a little flexibility out-of-the-box" side of the line. Alternative templates would be able to use modules as the case is now, hardcode their own module implementations, or whatever the case may be still.

avatar ciar4n
ciar4n - comment - 20 Jun 2018

Is there any argument for having that if the module exists then the hardcoded element is replaced by the module position?

avatar brianteeman
brianteeman - comment - 20 Jun 2018

You also forget that with the current module system a site owner can move these "critical" modules to different positions.

avatar brianteeman
brianteeman - comment - 20 Jun 2018

In conclusion it is either a template with modules etc or a complete application. I don't believe you can have both . My 10c

avatar mbabker
mbabker - comment - 20 Jun 2018

This is one of those times where I really feel like having capabilities exposed in the UI can let a user shoot themselves in the foot way too easily (same argument can be made for authentication plugins). Having a truly modular backend is not something we designed Isis for, and I guarantee the 4.0 work won't be either. Sure, some stuff can be moved around and things display OK (move the toolbar to the title position, it works but you've still got the sticky navbar that's now empty), but there's also some magic in Isis at least that means if you move some things out of position they don't display right at all (i.e. change the user status module to the footer position instead of status).

So I don't think it'd be an extremely terrible thing to hardcode some stuff direct into the template, unless we're going to commit to a properly modular admin template.

avatar ciar4n
ciar4n - comment - 20 Jun 2018

All things considered I think my preference would be to also hardcode these elements. It is certainly the easier option. The alternative involves a lot more considerations for largely edge cases.

avatar brianteeman
brianteeman - comment - 20 Jun 2018

So hard code all the modules that are part of the ui. ie everything that is not a dashboard item.

avatar dgrammatiko
dgrammatiko - comment - 20 Jun 2018

@mbabker I've already started something for this: https://github.com/joomla/40-backend-template/compare/master...dgrammatiko:html5-please?expand=1

Obviously for the same reasons that you mentioned above I totally agree...

avatar brianteeman brianteeman - change - 22 Jun 2018
Labels Added: J4 Issue
avatar brianteeman brianteeman - labeled - 22 Jun 2018
avatar brianteeman
brianteeman - comment - 19 Aug 2018

Seems that we already have modules hard coded into components now.

avatar mbabker mbabker - change - 9 Sep 2018
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2018-09-09 16:37:47
Closed_By mbabker
avatar mbabker mbabker - close - 9 Sep 2018

Add a Comment

Login with GitHub to post a comment