? Pending

User tests: Successful: Unsuccessful:

avatar C-Lodder
C-Lodder
19 Mar 2017

Pull Request for Issue # .

Summary of Changes

This PR moves the accordion HTML to layouts, allowing people to finally override them.

Testing Instructions

  • Apply PR
  • Create a new menu item and open the modal "Menu Item Type"

Expected result

The accordion should work the same as before the PR

avatar C-Lodder C-Lodder - open - 19 Mar 2017
avatar C-Lodder C-Lodder - change - 19 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 19 Mar 2017
Category Layout Libraries
avatar brianteeman
brianteeman - comment - 19 Mar 2017

layouts that just have closing tags seems massively wrong to me - there must be a better way to do that

avatar C-Lodder
C-Lodder - comment - 19 Mar 2017

@brianteeman if I knew a way...

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 19 Mar 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 19 Mar 2017

I have tested this item successfully on 1018ad9


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/14768.

avatar dgt41
dgt41 - comment - 19 Mar 2017

@C-Lodder layouts support sub-layouts https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/layout/file.php#L650
But you'll have to make a B/C break (or not, haven't look the code here TBH)

avatar mbabker
mbabker - comment - 19 Mar 2017

?

All JHtml methods can be overridden through the use of its API for defining what method a key should call as demonstrated in https://github.com/mbabker/bs3-demo/blob/master/plg_system_bootstrap3/bootstrap3.php

We should not be having JHtml methods (overridable by API design) be heavily using JLayout. This potentially creates a confusing chain of figuring out what has been overridden (and therefore what's actually in use on the site).

If the intent is to shuffle markup out of JHtml methods, the helpers should be deprecated and JLayout should just be used directly.

avatar C-Lodder
C-Lodder - comment - 19 Mar 2017

@mbabker why has it been done for tabs then?

avatar C-Lodder C-Lodder - change - 19 Mar 2017
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2017-03-19 15:34:48
Closed_By C-Lodder
Labels Added: ?
avatar C-Lodder C-Lodder - close - 19 Mar 2017
avatar mbabker
mbabker - comment - 19 Mar 2017

I can't say I liked it then either. But not the first time I've been ignored.

Add a Comment

Login with GitHub to post a comment