? Pending

User tests: Successful: Unsuccessful:

avatar ghazal
ghazal
15 Oct 2018

When exploring settings of a field, we should be able to add a css class to Render Class in Render Options, tab Options.

Actual result:

<span class="field-label labelcssadded">Title of the field</span>
<span class="field-value">

Expected result:

<span class="field-label labelcssadded">Title of the field</span>
<span class="field-value valuecssadded">
avatar ghazal ghazal - open - 15 Oct 2018
avatar ghazal ghazal - change - 15 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 15 Oct 2018
Category Front End com_fields
avatar ghazal ghazal - change - 15 Oct 2018
The description was changed
avatar ghazal ghazal - edited - 15 Oct 2018
avatar ghazal ghazal - change - 15 Oct 2018
The description was changed
avatar ghazal ghazal - edited - 15 Oct 2018
avatar ghazal ghazal - change - 15 Oct 2018
The description was changed
avatar ghazal ghazal - edited - 15 Oct 2018
avatar laoneo
laoneo - comment - 16 Oct 2018

This class is used here https://github.com/joomla/joomla-cms/blob/staging/components/com_fields/layouts/fields/render.php#L59. In your pr, the class is added then two times.

If you want a new class for the value, then you need to introduce a new parameter. But honestly I doubt that it is really needed.

avatar ghazal ghazal - change - 16 Oct 2018
Labels Added: ?
avatar ghazal
ghazal - comment - 16 Oct 2018

@laoneo
Maybe.
Nevertheless, the feature is available in Options of a Field and as it is, it doesn't render.
But right, my code needs some change.

avatar ghazal
ghazal - comment - 17 Oct 2018

OK, there was a mix-up from my part.
I assumed that the staging branch refers to 3.9 (rc2) because there is no 3.9 version in the branch list.
I guess I shouldn't have.
3. 8 and 3.9 back-end display for a field Options are different.

3.8
3_8_field_options

3.9
3 9_field_options

Anyway, I'll close this post, revise the code, and post for 3.9.

avatar ghazal ghazal - close - 17 Oct 2018
avatar ghazal ghazal - change - 17 Oct 2018
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2018-10-17 11:40:43
Closed_By ghazal

Add a Comment

Login with GitHub to post a comment