NPM Resource Changed ? ? Pending

User tests: Successful: Unsuccessful:

avatar RickR2H
RickR2H
11 May 2021

Pull Request for Issue #32561

Removed my previous PR #33603 and added the code from this PR and the missing styling for the contact page.

Summary of Changes

There where some styling issues in both the user profile page and the single contact regarding the dl-horizontal class and the edit user profile button. This PR fixes the styling issues.

Testing Instructions

Best way to test:

  1. Enable the User - Profile plugin
  2. Create a custom field in the Users Component
  3. Fill all the fields in the extra tab "User Profile" now visible in the Users component under the account settings.Also fill the new custom field value
  4. Enable as much options for the user account
  5. Create a custom field for the Contacts component
  6. Create a new contact in the Contacts component and Fill all the fields inducing the custom field
  7. Enable as much options newly created contact
  8. Link the Contact to the user profile under "Linked User"
  9. Create a menu item of type "User Profile"
  10. Create a menu item of type "Single Contact" and link this menu item to the created contact.
  11. Login to the frontend of the site and visit both menu items.
  12. Activate this PR and recreate the styling if necessary by running in the root of the site: npm run build:css
  13. Visit the pages again and look at the results.

com_users

com_contacts

Actual result BEFORE applying this Pull Request

See the left site of the screenshots

Expected result AFTER applying this Pull Request

See the right site of the screenshots

Documentation Changes Required

No

avatar RickR2H RickR2H - open - 11 May 2021
avatar RickR2H RickR2H - change - 11 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 May 2021
Category Front End com_contact com_users Templates (site) NPM Change
avatar richard67
richard67 - comment - 11 May 2021

@RickR2H Please fix the errors reported by the SCSS style linter here: https://ci.joomla.org/joomla/joomla-cms/43504/1/20 . Thanks in advance.

avatar RickR2H RickR2H - change - 11 May 2021
Labels Added: NPM Resource Changed ?
avatar RickR2H
RickR2H - comment - 11 May 2021

@drmenzelit Please check and test my new PR.


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

avatar chmst
chmst - comment - 11 May 2021

Good work! Thank you - looks much better now.

During test I have found that the params from #__contact_details are not used in the contact layout.
This is not related to your PR, so I will give it a good test.

But as you are active here at the moment, maybe you would like to fix this?

avatar chmst chmst - test_item - 11 May 2021 - Tested successfully
avatar chmst
chmst - comment - 11 May 2021

I have tested this item successfully on 913916f


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

avatar chmst chmst - test_item - 11 May 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 11 May 2021

Looks great - thanks

avatar RickR2H
RickR2H - comment - 11 May 2021

@chmst Thanks for testing! Could you be more precise in which parameters don't work? When I switch to the Contacts:Edit page the parameters seems to work accordingly.

avatar chmst
chmst - comment - 11 May 2021

This one https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_contact/tmpl/contact/default.php#L21
controls the behaviour, for example if a form is displayed or not.
But it does not contain the params from #__contact_details.
You can try this with setting for example the param "show_email_form" to "hide". This is set correct on #__contact_details, but it is not in $tparams.

avatar RickR2H
RickR2H - comment - 11 May 2021

This one https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_contact/tmpl/contact/default.php#L21
controls the behaviour, for example if a form is displayed or not.
But it does not contain the params from #__contact_details.
You can try this with setting for example the param "show_email_form" to "hide". This is set correct on #__contact_details, but it is not in $tparams.

Settings done in the Contact:Edit view are updated in the params field in #__contact_details. Normally the menu item can override the settings but this doesn't work. Maybe this is by design, but I have to check.

This one https://github.com/joomla/joomla-cms/blob/4.0-dev/components/com_contact/tmpl/contact/default.php#L21
controls the behaviour, for example if a form is displayed or not.
But it does not contain the params from #__contact_details.
You can try this with setting for example the param "show_email_form" to "hide". This is set correct on #__contact_details, but it is not in $tparams.

Best is to do a bug report with a good example how to reproduce the issue so someone can look into it.

Cheers!

avatar richard67
richard67 - comment - 11 May 2021

Looks great - thanks

@brianteeman Was that a successful test? If so, could you mark the test result? Thanks in advance.

avatar MSnoeren MSnoeren - test_item - 12 May 2021 - Tested successfully
avatar MSnoeren
MSnoeren - comment - 12 May 2021

I have tested this item successfully on 913916f


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

avatar richard67 richard67 - change - 12 May 2021
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 12 May 2021

RTC


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

avatar chmst
chmst - comment - 12 May 2021

@RickR2H never mind - It was my bad, I had forgotten that menu settings override the settings in the item :) All is comme il faut.

avatar drmenzelit drmenzelit - change - 12 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-12 09:36:03
Closed_By drmenzelit
Labels Added: ?
avatar drmenzelit drmenzelit - close - 12 May 2021
avatar drmenzelit drmenzelit - merge - 12 May 2021
avatar drmenzelit
drmenzelit - comment - 12 May 2021

Thank you :-)

Add a Comment

Login with GitHub to post a comment