?
avatar nordmograph
nordmograph
14 Apr 2017

Steps to reproduce the issue

Create a new field in Joomla contacts or Joomla users. In field settings, Options tab, set the 'Show Label' option to 'Hide'

Expected result

The field label should not be displayed when the field is rendered in contact and profile views (default layouts) (working as expected in Articles)

Actual result

Field Label keeps showing

avatar nordmograph nordmograph - open - 14 Apr 2017
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Apr 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Apr 2017
Category com_fields com_contact com_fields com_users
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Apr 2017
Build RC2 3.7-rc2
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 14 Apr 2017

Issue confirmed.

System information

3.7.0-rc2 (nightly Build)
macOS Sierra, 10.12.4
Firefox 52 (64-bit)

MAMP 4.1.1

  • PHP 7.0.15
  • MySQLi 5.6.35
avatar franz-wohlkoenig franz-wohlkoenig - change - 14 Apr 2017
Status New Confirmed
avatar AlexRed
AlexRed - comment - 14 Apr 2017

Seems related to #14377 #15244
Unfortunately currently is not possible to change the Field parameter for a context (com content, com user, com contact or external component)

avatar Bakual
Bakual - comment - 14 Apr 2017

Nope, this is not related to the other issues. It's just that com_contact has an override for the field layout and that one doesn't check the label parameter.
See https://github.com/joomla/joomla-cms/blob/staging/components/com_contact/layouts/field/render.php
I don't know about the user one, that one should use the regular layout as far as I know.

The regular JLayout is this one: https://github.com/joomla/joomla-cms/blob/staging/components/com_fields/layouts/field/render.php

avatar AlexRed
AlexRed - comment - 14 Apr 2017

oppsss... sorry
then a new bug for the custom fields

avatar nordmograph
nordmograph - comment - 14 Apr 2017

Well com_users doesn't use an override yet for the field layout it doesn't use either the regular JLayout

At least it can be easily addressed for com_contact


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

avatar laoneo
laoneo - comment - 15 Apr 2017

If I'm not wrong, but com_users uses JForm to show the fields. It has a totally different behavior than com_contact. But yes, com_contact should have the same behavior as com_content.

avatar zero-24
zero-24 - comment - 21 Apr 2017

@laoneo can you do than a PR for fix the com_contact behavior?

avatar laoneo
laoneo - comment - 3 May 2017

Please test the pr #15756 which should fix the contact label hide issue.

avatar franz-wohlkoenig franz-wohlkoenig - change - 3 May 2017
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2017-05-03 09:16:26
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 3 May 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 3 May 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 3 May 2017

closed as having PR #15756


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

avatar joomla-cms-bot
joomla-cms-bot - comment - 3 May 2017
avatar AlexRed
AlexRed - comment - 16 May 2017

but the PR is only for the contact, the problem is also in the user, please reopen.

avatar laoneo
laoneo - comment - 16 May 2017

As already said, the profile view is a form and has a totally different set up. I suggest to open a new issue for that one as the logic is very different then the rest of Joomla.

Add a Comment

Login with GitHub to post a comment