? ? Failure

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
8 Feb 2019

The special layouts of com_contact (displaying contacts in sliders, tabs or plain) are stupid. We have no other output that you can switch like this. So this PR removes that feature.

How to test

Create a new contact and see that you can't select a presentation style for this. Likewise in menu items and the global configuration for com_contact. See in the frontend that a contact is only displayed in plain style.

avatar Hackwar Hackwar - open - 8 Feb 2019
avatar Hackwar Hackwar - change - 8 Feb 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2019
Category Administration com_contact Front End
avatar ciar4n
ciar4n - comment - 8 Feb 2019

Related issue.. #15345

avatar infograf768
infograf768 - comment - 8 Feb 2019

Qualifying this feature as stupid is your analysis.
Let's each one select what they want as it is already available.

avatar C-Lodder
C-Lodder - comment - 8 Feb 2019

Fully agree with this.

Easier to maintain and users can create an override, should they wish to change the structure

avatar mbabker
mbabker - comment - 8 Feb 2019

Let's each one select what they want as it is already available.

Then re-implement it as alternative layouts instead of shoving what is in essence three different layout styles into one template (basically doing the same as default and blog category layouts for articles). I don't think the feature is "stupid" necessarily but the implementation just sucks and makes building overrides more complex than necessary because you have to decipher what code belongs to what layout option and account for a lot of scenarios that might not exist if you're going for the plain style.

avatar brianteeman
brianteeman - comment - 8 Feb 2019

If you are going to remove the options then you also should remove the language strings

avatar Hackwar
Hackwar - comment - 8 Feb 2019

Excuse my language. Displaying the contact in sliders or tabs is of course not stupid, but as @mbabker wrote, the implementation is among the worst that I can think of.

@brianteeman going to remove the language strings now.

avatar Hackwar Hackwar - change - 8 Feb 2019
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - change - 8 Feb 2019
Category Administration com_contact Front End Administration com_contact Language & Strings Front End
avatar Hackwar Hackwar - change - 8 Feb 2019
Labels Added: ?
avatar astridx
astridx - comment - 9 Feb 2019

I tested this PR and I like it. In my opinion, the presentation belongs only to the template.

But: Does not the parameter have to be deleted here

https://github.com/joomla/joomla-cms/blob/ad2c673ac27c2fd19bbdf6003aee0451d068de16/installation/sql/mysql/joomla.sql#L521

and here

https://github.com/joomla/joomla-cms/blob/ad2c673ac27c2fd19bbdf6003aee0451d068de16/installation/sql/postgresql/joomla.sql#L531

avatar Hackwar
Hackwar - comment - 9 Feb 2019

Hello @astridx, thanks for your test. Yes, the parameter data is still there in the SQL, but it will simply be ignored. When the data is loaded, that key-value-pair will simply not be added anywhere and if you save the global config of com_contact the next time, this would be gone. I've not deleted these entries because I'm a bit lazy and I expect us to at one time to update all these parameters from the XML source anyway before 4.0 is released.

avatar franz-wohlkoenig franz-wohlkoenig - change - 11 Apr 2019
Category Administration com_contact Front End Language & Strings Administration com_contact Front End
avatar wilsonge wilsonge - change - 18 Apr 2019
Labels Removed: J4 Issue
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2019
Category Administration com_contact Front End Administration com_contact Language & Strings Front End
avatar wilsonge wilsonge - change - 18 Apr 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-04-18 11:36:20
Closed_By wilsonge
avatar wilsonge wilsonge - close - 18 Apr 2019
avatar wilsonge wilsonge - merge - 18 Apr 2019
avatar Hackwar
Hackwar - comment - 18 Apr 2019

Thank you!

Add a Comment

Login with GitHub to post a comment