No Code Attached Yet J4 Issue bug
avatar webgras
webgras
30 Nov 2018

Steps to reproduce the issue

1. Create an override i.e. "portrait.php" for custom fields:
i.e. copy render.php from components/com_fields/layouts/field/ to
templates/your_template/html/layouts/com_fields/field/portrait.php
add some test text in the output.

2. Create a custom field for users (I tried with text and media)
on tab "Options" choose "Show label" hide and choose "Layout" the value "portrait" from your template
j391-cf-user-layout

3. Add a value to the new field in your user profile

4. Create frontend menu item for user profile
Login to frontend, show user profile

Expected result

Only field value should be shown and your test output from the file

Actual result

Label is shown, layout override from template is not loaded.

System information (as much as possible)

Joomla 3.9.1

Additional comments

Connected to #23138
I think com_users was not implemented.

Probably it is two issues - one for the label, one for the layout override.
If necessary, I will created a second one, please let me know.

avatar webgras webgras - open - 30 Nov 2018
avatar joomla-cms-bot joomla-cms-bot - change - 30 Nov 2018
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 30 Nov 2018
avatar webgras
webgras - comment - 30 Nov 2018

I think - originated from this pull request #18571

avatar Bakual
Bakual - comment - 30 Nov 2018

Com_users shouldn't behave any different than the other components. To my knowledge only com_contact has a special JLayout. Or do I miss something @laoneo ?

avatar webgras
webgras - comment - 1 Dec 2018

Yes, I think so too, but the render options for the custom user fields are not working in frontend, like "Hide Label", label-classes and Layout.

avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Mar 2019
Status New Discussion
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 28 Mar 2019

@laoneo gently Reminder.

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Mar 2019
Status Discussion Information Required
avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Mar 2019
Category com_fields
avatar franz-wohlkoenig franz-wohlkoenig - unlabeled - 4 Apr 2019
avatar franz-wohlkoenig franz-wohlkoenig - change - 4 Apr 2019
Labels Added: J3 Issue
avatar franz-wohlkoenig franz-wohlkoenig - labeled - 4 Apr 2019
avatar AndySDH
AndySDH - comment - 9 Nov 2019

It turns out that com_users has a completely different way of displaying custom fields.

Instead of using a fields/render.php layout (like com_content and com_contact do), com_users in the user profile outputs the fields through:
components/com_users/views/profile/tmpl/default_custom.php

Also, when outputting the user fields in their respective com_contact page, they're output with yet again another different way of doing it. They're output through:
components/com_contact/views/contact/tmpl/default_user_custom_fields.php

Neither of these two methods of outputting user custom fields is honoring layouts in any way.

So the user custom fields behavior is not at all consistent with the other two components (com_content and com_contact).

This can of course still be overridden via template, but the ideal situation would be implementing the rendering of the user fields to be the same as the rest by using the com_fields/layout/fields/render.php

@Bakual

avatar jwaisner jwaisner - change - 11 Mar 2020
Status Information Required Confirmed
avatar AndySDH
AndySDH - comment - 31 Jul 2021

I guess nobody cares about this issue?

avatar webgras
webgras - comment - 2 Aug 2021

I do. And I haven't checked how this is handled in J4.

avatar brianteeman
brianteeman - comment - 26 Aug 2022

Thank you for raising this issue.

Joomla 3 is now in security only mode with no further bug fixes or new features.

I have verified that at least the show label part is still an issue with Joomla 4

Please can the label be updated to J4 Issue

avatar alikon alikon - change - 26 Aug 2022
Labels Added: No Code Attached Yet J4 Issue
Removed: J3 Issue ?
avatar alikon alikon - labeled - 26 Aug 2022
avatar alikon alikon - unlabeled - 26 Aug 2022
avatar Hackwar Hackwar - change - 18 Feb 2023
Labels Added: bug
avatar Hackwar Hackwar - labeled - 18 Feb 2023

Add a Comment

Login with GitHub to post a comment