load one field into an article using the tag {field xx}
set a Render Class into the field option
the field shall have the css class applied
the css class does not apply
J! 3.7.2
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
Status | New | ⇒ | Confirmed |
@coolcat-creations can you please have a Look?
Status | Confirmed | ⇒ | Information Required |
Title |
|
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.
The field accepets alternative layouts, so you can create one which fits your needs.
Status | Information Required | ⇒ | Expected Behaviour |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-12-26 07:34:25 |
Closed_By | ⇒ | franz-wohlkoenig |
Status | Expected Behaviour | ⇒ | Closed |
Closed_By | franz-wohlkoenig | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @franz-wohlkoenig by The JTracker Application at issues.joomla.org/joomla-cms/16672
closed on given Answer above.
Issue confirmed.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/16672.