User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This PR adds two new layout overrides to com_content for rendering fieldgroups.
The list layout produces an unordered list (<ul><li></li></ul>
) which surrounds the default field layout for the single element.
The table layout produces a table view of the fieldgroup with a <caption>
element which uses the fieldgroup title. Labels are rendered as <th scope="row">
(if set to display label), while values are normal <td>
entries.
Create a fieldgroup with one or more fields. Display the fieldgroup in an article body. Use {fieldgroup x} for the default com_fields layout and {fieldgroup x,list} or {fieldgroup x,table} for, respectively, list layout override or table layout override.
Add more nicer ways to render fieldgroups inside articles.
Only the default com_fields layout is available.
The layout override option is only mentioned inside the Content - Fields plugin settings. It would be nice an addition to Joomla documentation.
Category | ⇒ | Front End com_content |
Status | New | ⇒ | Pending |
Do we really need to add those layouts to core? Imho, this are things which can be done by the user in a template override.
Labels |
Added:
?
|
Status | Pending | ⇒ | Information Required |
Oh, I tried in many ways, but I didn't try to put a "layouts" directory under the "html" directory... I think the documentation is not clear on that.
Anyway, thank you, now I agree that this can be done at user template level, so I retire this PR.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-11-26 08:52:59 |
Closed_By | ⇒ | mattiaverga |
I have tested this item✅ successfully on 36fdfca
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/18367.