?
avatar ced1870
ced1870
13 Jun 2017

Steps to reproduce the issue

load one field into an article using the tag {field xx}
set a Render Class into the field option

Expected result

the field shall have the css class applied

Actual result

the css class does not apply

System information (as much as possible)

J! 3.7.2

Additional comments

The problem is that the Render Class option is used into the fields layout and if you call only one field with the tag, it calls the field layout (single)

params->get('render_class'); ?>
<dd class="field-entry <?php echo $class; ?>">

shall be loaded into the field layout and not the fields layout as it an option of the field itself

Votes

# of Users Experiencing Issue
1/1
Average Importance Score
5.00

avatar ced1870 ced1870 - open - 13 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Jun 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Jun 2017
Status New Confirmed
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Jun 2017

Issue confirmed.


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

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Nov 2017

@coolcat-creations can you please have a Look?


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Status Confirmed Information Required
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Title
Render Class does not work on single field in content
[com_fields] Render Class does not work on single field in content
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2017
avatar AndySDH
AndySDH - comment - 8 Nov 2017

If i recall correctly, this part
<dd class="field-entry <?php echo $class; ?>">
originally, this indeed was inside the field layout instead of the fields layout, but it was then decided to move it inside the fields layout (found it: #15013), because users expect to be able to use {field xx} as part of the text when embedding it in an article.

That means being able to do something like: Mark was born on {field xx} in {field xx}.

If you put the "dd" in the field layout, that is not possible anymore, and it's the reason why it was changed in the first place.

It's probably better to keep the "dd" in the fields layout, and possibly add the class inside the span of the field layout.

avatar laoneo
laoneo - comment - 18 Nov 2017

The field accepets alternative layouts, so you can create one which fits your needs.

avatar franz-wohlkoenig franz-wohlkoenig - change - 26 Dec 2017
Status Information Required Expected Behaviour
Closed_Date 0000-00-00 00:00:00 2017-12-26 07:34:25
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 26 Dec 2017
Status Expected Behaviour Closed
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 26 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 26 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 26 Dec 2017

closed on given Answer above.


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

Add a Comment

Login with GitHub to post a comment