? ? Pending

User tests: Successful: Unsuccessful:

avatar infograf768
infograf768
27 Aug 2018

Following up on #21850

Summary of Changes

Added custom-select class

Testing Instructions

See #21850 (comment)

Looks before and after patch when edit modules, + some for contact, tags, newsfeeds

Documentation required

Yes

avatar infograf768 infograf768 - open - 27 Aug 2018
avatar infograf768 infograf768 - change - 27 Aug 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 27 Aug 2018
Category Administration com_categories com_contact com_newsfeeds com_tags Modules Front End
avatar infograf768
infograf768 - comment - 27 Aug 2018

Drone failure is unerlated. See #21863

avatar infograf768 infograf768 - change - 27 Aug 2018
Labels Added: ?
avatar franz-wohlkoenig franz-wohlkoenig - test_item - 27 Aug 2018 - Tested successfully
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

I have tested this item successfully on 5f7ef5d

Test:

avatar laoneo
laoneo - comment - 27 Aug 2018

Is this a change where all 3rd party extension devs needs to follow? If yes, then we need to add the "Documentation required" label.

avatar infograf768
infograf768 - comment - 27 Aug 2018

Is this a change where all 3rd party extension devs needs to follow? If yes, then we need to add the "Documentation required" label.

There were and will certainly still added in the WIP new admin template so many changes that I have no idea what will be finally required when we get to a real alpha. the custom-select is already in core for quite afew other stuff.

Will add the info nevertheless.

avatar infograf768 infograf768 - change - 27 Aug 2018
The description was changed
avatar infograf768 infograf768 - edited - 27 Aug 2018
avatar ghazal
ghazal - comment - 27 Aug 2018

I have tested this item successfully on 5f7ef5d


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

avatar ghazal ghazal - test_item - 27 Aug 2018 - Tested successfully
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Aug 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 27 Aug 2018

Ready to Commit after two successful tests.

avatar wilsonge wilsonge - change - 28 Aug 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-08-28 15:17:46
Closed_By wilsonge
Labels Added: ?
avatar wilsonge wilsonge - close - 28 Aug 2018
avatar wilsonge wilsonge - merge - 28 Aug 2018
avatar laoneo
laoneo - comment - 28 Aug 2018

I'v added the documentation required label as on a first glance it looks like a change where extension devs need to follow.

avatar dgrammatiko
dgrammatiko - comment - 28 Aug 2018

Ahh, more tight couplings to Bootstrap. Great ?

avatar ggppdk
ggppdk - comment - 28 Aug 2018

At least,
the hard coding of this class inside the helper method rendering the field was removed
which was really problematic for anyone wanting to use something else

(same in J3, such class is not hard-coded in J3 (helper method) either)

avatar mbabker
mbabker - comment - 28 Aug 2018

Ahh, more tight couplings to Bootstrap. Great ?

You know, not every CSS class that Bootstrap uses/offers has to inherently mean "coupled to Bootstrap". Otherwise, you could never use generic class names like "alert", "row", "tab", etc.

(Not to say this PR is necessarily "right", I'd rather the class attribute in the XML forms define things unique to that field versus defining a framework integration as is the case here; the framework integration part should be left to the template to decide but the odds of us having the core form fields be framework agnostic and maintaining a set of Bootstrap designed layouts is going to be slim to none)

avatar brianteeman
brianteeman - comment - 28 Aug 2018

Every class in joomla should be written in Esperanto and then reversed to ensure it has no resemblance to the name of any other class used by anything

Problem solved

avatar mbabker
mbabker - comment - 28 Aug 2018

Ship <div class="_14f3 _14f5 _5pbw _5vra">What the!?</div> and have fun decoding it ?

avatar dgrammatiko
dgrammatiko - comment - 28 Aug 2018

So how am I supposed to change that class in the XML to fit my needs?
Isn't this a hardcoded situation that core doesn't even provide a way to override (unless if you write a plugin)?

But I guess I'm in the wrong ship here as it seems that bootstrap is a blessing for this project...

avatar mbabker
mbabker - comment - 28 Aug 2018

Isn't this a hardcoded situation that core doesn't even provide a way to override (unless if you write a plugin)?

Got any other ideas on integration points for manipulating forms then? Also, plugin manipulation actually only works for stuff going through MVC, JForm is blissfully unaware of the event system (this could be a good or bad thing depending on your perspective).

avatar brianteeman
brianteeman - comment - 28 Aug 2018

If you really want to create your own admin customisations I don't see why you can't create a class in your own template with that name?

avatar dgrammatiko
dgrammatiko - comment - 28 Aug 2018

@brianteeman and you're so right once again:
screenshot 2018-08-28 at 20 35 54

avatar brianteeman
brianteeman - comment - 28 Aug 2018

and you can't customise that class in your css because of?

avatar C-Lodder
C-Lodder - comment - 28 Aug 2018

Would it not be better to do this in the layout, rather than XML files?

avatar brianteeman
brianteeman - comment - 28 Aug 2018

Maybe I am getting this completely wrong but whatever framework or custom CSS you are using you need a class name to target in the markup

So I just don't get the problem with having a name used in bootstrap (or any other framework). If your not using bootstrap then you will need to create your own markup anyway

That is unless you really expect to be able to write 100% generic class names that will work out of the box in any framework

avatar C-Lodder
C-Lodder - comment - 28 Aug 2018

@brianteeman I personally couldn't care less what framework people use. It's more a matter of just having the default as art of the layout, so that extension developers don't need to remember to add the custom-select class to their XML files, should they wish to following the same styling.. It will already be done for them. Just my 2 pence anyway

avatar brianteeman
brianteeman - comment - 28 Aug 2018

So we need to remove all references to class="switcher" etc ???

avatar C-Lodder
C-Lodder - comment - 28 Aug 2018

@brianteeman No. The switcher still uses the radio form field.

type="radio"
class="switcher"
avatar brianteeman
brianteeman - comment - 28 Aug 2018

Exactly the same as with this pr

avatar brianteeman
brianteeman - comment - 28 Aug 2018

Or to stick to your example of the radio form field

type="radio"
class="btn-group btn-group-yesno"
type="radio"
class="btn-group btn-group-rotate"

type="radio"
class="btn-group btn-group-reverse"

Add a Comment

Login with GitHub to post a comment