? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
30 Mar 2017

Pull Request for Issue #14753 .

Summary of Changes

Moving the <dd> tag from the "field" Jlayout to the "fields" Jlayout where also the <dl> tag is defined

Testing Instructions

  • Create a field and assign a value to it
  • Set the tag to automatic display plus insert it into the article using the field button.
  • Check article in frontend, the automatic display should have the <dl> and <dd> tags around the field, but the one in the article should not have any of them.

Expected result

See testing instructions.

Actual result

<dd> tag appears also in article, creating invalid HTML.

Documentation Changes Required

None

avatar Bakual Bakual - open - 30 Mar 2017
avatar Bakual Bakual - change - 30 Mar 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 30 Mar 2017
Category Front End com_fields
avatar AlexRed AlexRed - test_item - 30 Mar 2017 - Tested successfully
avatar AlexRed
AlexRed - comment - 30 Mar 2017

I have tested this item successfully on fc933d5

Patch ok for me


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

avatar laoneo
laoneo - comment - 31 Mar 2017

I would rather use a second layout, instead of using a one for all solution. Like that it is much easier for the admin to handle the layouts. Just my 2 cents here.

avatar Bakual
Bakual - comment - 31 Mar 2017

Actually, the <dd> tag should be in the layout specifying the <dl> tag anyway. There is no reason to have that one in the field layout. So this change is needed anyway, even if we want to do two different layouts (which I don't see any need for) later.

avatar Bakual Bakual - change - 31 Mar 2017
Title
Moving <dd> from field JLayout to fields JLayout
Moving from field JLayout to fields JLayout
Labels Added: ?
avatar brianteeman
brianteeman - comment - 31 Mar 2017

As you cant have a dd without a dl it makes sense to me that they are in the same layout. And if they dont want to have a definition list then they are only overriding/customising one file

avatar laoneo
laoneo - comment - 31 Mar 2017

As you can't have a dd without a dl

That's an argument.

avatar C-Lodder
C-Lodder - comment - 31 Mar 2017

@laoneo - Even though the dd doesn't have to be the first child, Brian is correct.

avatar joomla-cms-bot joomla-cms-bot - edited - 31 Mar 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Apr 2017
Status Pending Discussion
avatar joomla-cms-bot joomla-cms-bot - edited - 1 Apr 2017
avatar nibra nibra - change - 1 Apr 2017
Title
Moving from field JLayout to fields JLayout
Moving dd tag from field JLayout to fields JLayout
avatar joomla-cms-bot joomla-cms-bot - edited - 1 Apr 2017
avatar laoneo
laoneo - comment - 2 Apr 2017

Don't forget the override in com_contact.

avatar Bakual
Bakual - comment - 2 Apr 2017

Don't forget the override in com_contact.

I had a look at that one when I wrote the PR. I think we can leave that one as it is.
We can't move the dt and dd into the parent layout there, or we would have to render the label (wrapped into the dt) in the parent one. Which I think is a bit pointless as well.

avatar joomla-cms-bot joomla-cms-bot - change - 2 Apr 2017
Title
[com_fields] Moving dd tag from field JLayout to fields JLayout
Moving dd tag from field JLayout to fields JLayout
avatar joomla-cms-bot joomla-cms-bot - edited - 2 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Title
Moving dd tag from field JLayout to fields JLayout
[com_fields] Moving dd tag from field JLayout to fields JLayout
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Apr 2017
Title
Moving dd tag from field JLayout to fields JLayout
[com_fields] Moving dd tag from field JLayout to fields JLayout
avatar rdeutz rdeutz - change - 18 Apr 2017
Status Discussion Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-04-18 06:38:20
Closed_By rdeutz
avatar rdeutz rdeutz - close - 18 Apr 2017
avatar rdeutz rdeutz - merge - 18 Apr 2017

Add a Comment

Login with GitHub to post a comment