?
avatar AndySDH
AndySDH
28 Apr 2017

Steps to reproduce the issue

It would be an useful feature to be able to display (via The Content - Fields plugin) the field label separatedly from the field value.

Actual result

Right now the syntax allows the following:

{field 1} will display the field with the ID 1
{field 1,foo} will display the selected field using the alternative layout 'foo'.
{fieldgroup 2} will display all fields within the fieldgroup with the ID 2.

Expected result

It would be useful feature to also allow something like:

{field_value 1} will display only the field value of the field with the ID 1
{field_label 1} will display only the field label of the field with the ID 1

Additional Comments

This allows to display the label and the value in two different places with two different styles in the editor.

System information (as much as possible)

Joomla 3.7

avatar AndySDH AndySDH - open - 28 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 28 Apr 2017
avatar AndySDH AndySDH - edited - 28 Apr 2017
avatar AndySDH AndySDH - change - 28 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 28 Apr 2017
avatar AndySDH AndySDH - change - 28 Apr 2017
The description was changed
avatar AndySDH AndySDH - edited - 28 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2017
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2017
Category Feature Request Front End
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Apr 2017
Category Feature Request Front End com_fields Feature Request Front End
avatar Bakual
Bakual - comment - 28 Apr 2017
  • Displaying only the value should be possible when you set the field to hide the label (there is an option for that in the field).
  • Displaying only the label would be possible by using a custom layout which only shows the label. Same would of course also be possible for only showing the value. Eg create a layout "label.php" which just echoes the label and then you could use {field 1, label}
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 29 Apr 2017

@AndySDH if Answer by @Bakual solves your Feature Request, please close Issue, thanks.

avatar AndySDH
AndySDH - comment - 29 Apr 2017

It does, actually. Didn't think of that. It's not needed to add this as a feature.

avatar AndySDH AndySDH - change - 29 Apr 2017
The description was changed
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-04-29 12:07:39
Closed_By AndySDH
avatar AndySDH AndySDH - close - 29 Apr 2017

Add a Comment

Login with GitHub to post a comment