No Code Attached Yet
avatar Scrabble96
Scrabble96
28 Dec 2021

Steps to reproduce the issue

In either J3.10 or J4.0.5 create a custom fields. I used a basic 'text' field.
In the Options tab, add a class for 'Field Class' and one for 'Label Class (Form)'.
Create or edit an article and add some text to the field.
View the article on the front end and use the browser's inspector.

Expected result

The field should be wrapped in a span with the associated class, e.g.

<span class="field-label my-field-class">Field label</span>
<span class="field-value my-label-class">Text of field</span>

Actual result

<span class="field-label ">Field label</span>
<span class="field-value ">Text of field</span>

System information (as much as possible)

Additional comments

avatar Scrabble96 Scrabble96 - open - 28 Dec 2021
avatar joomla-cms-bot joomla-cms-bot - change - 28 Dec 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Dec 2021
avatar brianteeman
brianteeman - comment - 28 Dec 2021

Can not replicate

image

avatar brianteeman
brianteeman - comment - 28 Dec 2021

In the Options tab, add a class for 'Field Class' and one for 'Label Class (Form)'.

Thats the problem. They are for the FORM ie for editing. Scroll down

image

avatar brianteeman
brianteeman - comment - 28 Dec 2021

Note there is a PR from me to rename the Render Options to Display Options

avatar Scrabble96 Scrabble96 - change - 28 Dec 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-12-28 18:47:10
Closed_By Scrabble96
avatar Scrabble96 Scrabble96 - close - 28 Dec 2021
avatar Scrabble96
Scrabble96 - comment - 28 Dec 2021

Thank you. That was indeed the issue. Sorry.

Add a Comment

Login with GitHub to post a comment