? Pending

User tests: Successful: Unsuccessful:

avatar degobbis
degobbis
26 Apr 2020

Summary of Changes

Define fields for the joomla.edit.global layout in the view.html.php files and not hardcoded it to the edit view of the extension.

cc: @zero-24

Testing Instructions

  • Install staging
  • Go to one listed edit view in the backend
  • Check the global fields layout on the right hand side
  • Apply patch
  • Check again, still be the same
    grafik

List of backendviews

  • com_banners/views/banner/
  • com_banners/views/client/
  • com_categories/views/category/
  • com_contact/views/contact/
  • com_content/views/article/
  • com_fields/views/field/
  • com_fields/views/group/
  • com_finder/views/filter/
  • com_menus/views/item/
  • com_modules/views/module/
  • com_newsfeeds/views/newsfeed/
  • com_plugins/views/plugin/
  • com_tags/views/tag/
  • com_templates/views/style/

B/C statement

This PR is fully B/C as you can still choose to override the fields list from the edit view and the global layout.

Expected result

Nothing hardcoded in the edit view anymore but still the same fields in the output

Actual result

Right now we hardcode the fields for the global layout in the edit fields and they can not be extended by extensions.

Documentation Changes Required

That should be documented but do you have any pointers where to look? Maybe we write a new docs page about it.

avatar degobbis degobbis - open - 26 Apr 2020
avatar degobbis degobbis - change - 26 Apr 2020
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 26 Apr 2020
Category Administration com_banners com_categories com_contact com_content com_fields com_finder com_menus com_modules com_newsfeeds com_plugins com_tags com_templates Templates (admin)
avatar degobbis degobbis - change - 26 Apr 2020
The description was changed
avatar degobbis degobbis - edited - 26 Apr 2020
avatar SharkyKZ
SharkyKZ - comment - 26 Apr 2020

Doesn't look like a good solution. Why the use of user state?

avatar zero-24
zero-24 - comment - 26 Apr 2020

Doesn't look like a good solution. Why the use of user state?

Do you have better proposal?

avatar HLeithner
HLeithner - comment - 26 Apr 2020

Changing the XML file would be better

avatar zero-24
zero-24 - comment - 26 Apr 2020

Changing the XML file would be better

There is no XML file and that would break B/C too. Maybe this can be done in 4.x ;)

avatar zero-24
zero-24 - comment - 26 Apr 2020

The change here is intended to be fully B/C so we can ship it with 3.x

avatar SharkyKZ
SharkyKZ - comment - 26 Apr 2020

Get rid of all hardcoded fields and render based on form structure, i.e. fieldset by fieldset.

avatar HLeithner
HLeithner - comment - 26 Apr 2020

Get rid of all hardcoded fields and render based on form structure, i.e. fieldset by fieldset.

that's what I mean thanks sharky

avatar zero-24
zero-24 - comment - 26 Apr 2020

Sounds good will work on that with @degobbis

avatar zero-24
zero-24 - comment - 26 Apr 2020

@SharkyKZ @HLeithner would you agree to merge that here and let us move the cleaup and xml stuff to 4.0 as this is breaking b/c really fast.

avatar HLeithner
HLeithner - comment - 26 Apr 2020

This PR would introduce a new way which is basically the wrong way to do it so no I would not merge this in any joomla version.

Our joomla.edit layouts are not intended to be extended by plugins instead only by definition in view, I think that's a thing which should be solved conceptional in J4.

avatar zero-24
zero-24 - comment - 26 Apr 2020

Would you mind merging it without the extension via the Session. So that we move the code out of the edit View to the view html?

avatar HLeithner
HLeithner - comment - 26 Apr 2020

I don't see a real reason for this, because the original definition of the field is in the layout it self. At least at the moment. What would be the benefit if we move it?

avatar Bakual
Bakual - comment - 26 Apr 2020

I wouldn't change any architectural things around those layouts anymore in J3.
For J4 I would love to see the possibility for more flexible layouts which can be used by 3rd party component.

avatar brianteeman
brianteeman - comment - 26 Apr 2020

@zero-24 I am trying to understand why this change is so important to you. What is the use case.

avatar zero-24
zero-24 - comment - 26 Apr 2020

We are working on a secret feature for joomla ;-)

But we for joomla 3 we found an workaround with changing the core.

avatar degobbis
degobbis - comment - 26 Apr 2020

Thx. for the feedback.
Closing while we found an workaround for our usecase.

avatar degobbis degobbis - change - 26 Apr 2020
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2020-04-26 20:05:14
Closed_By degobbis
Labels Added: ?
avatar degobbis degobbis - close - 26 Apr 2020

Add a Comment

Login with GitHub to post a comment