? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
23 Jan 2017

Currently, when a field is shown as part of an item (not in a form!), it has an ID attribute following the scheme "field-entry-ID". That means if multiple items (eg articles) are present on a page and all have that field set, you get an invalid HTML markup since IDs have to unique.

Summary of Changes

Removing the ID since it's not needed anyway.

Testing Instructions

  • Create fields and put values in it in at least two articles
  • Create and publish the "Articles - Newsflashmodule"
  • Check frontend and see that the field appears in multiple locations. Check the source code and see the id attribute present before this PR and gone after it.

Documentation Changes Required

None

avatar Bakual Bakual - open - 23 Jan 2017
avatar Bakual Bakual - change - 23 Jan 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 23 Jan 2017
Category Front End com_contact com_fields
avatar marrouchi
marrouchi - comment - 23 Jan 2017

I have tested this item successfully on baab0b0

Test was successful !

I have a suggestion, it may be interesting to add the item alias as a class for CSS styling purposes (eg class="class="field-entry field-entry-").


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

avatar marrouchi marrouchi - test_item - 23 Jan 2017 - Tested successfully
avatar Bakual
Bakual - comment - 23 Jan 2017

I have a suggestion, it may be interesting to add the item alias as a class for CSS styling purposes

You can already set a "render class" for the field. I don't think it makes sense to add yet another parameter to it.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 23 Jan 2017

I have tested this item successfully on baab0b0


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

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 23 Jan 2017 - Tested successfully
avatar laoneo
laoneo - comment - 24 Jan 2017

I would like to have an id, but it's probably rather hard to create an id here which will be unique even when two times the same event is triggered.

avatar Bakual
Bakual - comment - 24 Jan 2017

I would like to have an id, but it's probably rather hard to create an id here which will be unique even when two times the same event is triggered.

It's a bad idea to use IDs in frontend because of this reasons. That's why we usually don't generate any IDs at all except in forms. Everything else may be on the site more than once. You can use classes instead.

Will do the contact one later today, good catch!

avatar laoneo
laoneo - comment - 24 Jan 2017

ok.

avatar Bakual
Bakual - comment - 24 Jan 2017

Actually, I already did it in this PR. Or did I miss something?

avatar laoneo
laoneo - comment - 24 Jan 2017

True

avatar laoneo
laoneo - comment - 30 Jan 2017

I guess this one can be set to RTC?

avatar Bakual Bakual - change - 2 Feb 2017
Labels Added: ?
avatar Bakual
Bakual - comment - 2 Feb 2017

Rebased and fixed conflict.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Feb 2017

RTC or retest?

avatar jeckodevelopment
jeckodevelopment - comment - 22 Feb 2017

Re-Test please

avatar franz-wohlkoenig franz-wohlkoenig - test_item - 22 Feb 2017 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Feb 2017

I have tested this item successfully on 7aef91c


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

avatar wilsonge wilsonge - change - 26 Feb 2017
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-02-26 22:38:49
Closed_By wilsonge
avatar wilsonge wilsonge - close - 26 Feb 2017
avatar wilsonge wilsonge - merge - 26 Feb 2017

Add a Comment

Login with GitHub to post a comment