Feature RTC Language Change NPM Resource Changed RMDQ PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar drmenzelit
drmenzelit
10 Jul 2023

New layout for articles in contact.

Summary of Changes

Added two new parameters in the contact component to display the intro image and the introtext of an article inside a contact.

Testing Instructions

Create an article.
Create a contact connected with your user.
Activate the Content - Contact Plugin with redirection to Internal contact page.
Create a menu item for the article, display the author as link.
Create a menu item for contacts.
Configure the contact to display articles.

Actual result BEFORE applying this Pull Request

A simple list of linked articles titles.

2023-07-10 09_58_54-Contact – Mozilla Firefox

Expected result AFTER applying this Pull Request

Apply the PR, run "npm run build:css"

2023-07-10 09_59_17-Contacts_ Options - Joomla 5 - The future - Administration – Mozilla Firefox

2023-07-10 10_00_41-Contact – Mozilla Firefox

2023-07-10 14_43_55-Contacts_ Options - Joomla 5 - The future - Administration – Mozilla Firefox

2023-07-10 14_44_16-Contact – Mozilla Firefox

2023-07-10 15_38_19-Contact – Mozilla Firefox

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomla-cms-bot joomla-cms-bot - change - 10 Jul 2023
Category Administration com_contact Language & Strings Repository NPM Change Front End
avatar drmenzelit drmenzelit - open - 10 Jul 2023
avatar drmenzelit drmenzelit - change - 10 Jul 2023
Status New Pending
avatar drmenzelit drmenzelit - change - 10 Jul 2023
Labels Added: Language Change NPM Resource Changed PR-5.0-dev
avatar drmenzelit drmenzelit - change - 10 Jul 2023
The description was changed
avatar drmenzelit drmenzelit - edited - 10 Jul 2023
avatar drmenzelit drmenzelit - change - 10 Jul 2023
Title
Contact articles new layout with image
[5.X] Contact articles new layout with image
avatar drmenzelit drmenzelit - edited - 10 Jul 2023
avatar drmenzelit drmenzelit - change - 10 Jul 2023
Title
[5.X] Contact articles new layout with image
[5.x] Contact articles new layout with image
avatar drmenzelit drmenzelit - edited - 10 Jul 2023
avatar drmenzelit drmenzelit - change - 11 Jul 2023
Labels Added: Feature
avatar brianteeman
brianteeman - comment - 11 Jul 2023

isnt this something btter left as a template override.

avatar ceford
ceford - comment - 13 Sep 2023

There seems to be no way to override the Global Intro Image and Intro text settings for an individual Contact (other than via a menu item).

With User Articles, Intro Image and Intro Text all set to Yes I get this error, seems to be for articles without Intro images:

Warning
: Attempt to read property "image_intro" on null in
/Users/ceford/Sites/joomla-cms/components/com_contact/tmpl/contact/default_articles.php
on line
26

I think work is needed!


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

avatar HLeithner
HLeithner - comment - 30 Sep 2023

This pull request has been automatically rebased to 5.1-dev.

avatar chmst
chmst - comment - 18 Nov 2023

Works for me. But why did you use the showon="show_articles:1" only in com.config and not for menu Items?

avatar joomla-cms-bot joomla-cms-bot - change - 20 Nov 2023
Category Administration com_contact Language & Strings Repository NPM Change Front End Unit Tests Repository Administration com_admin com_contact com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_media NPM Change JavaScript com_menus com_messages com_templates com_users Language & Strings
avatar richard67
richard67 - comment - 20 Nov 2023

@drmenzelit It seems you've messed this PR which now has base branch 5.1-dev by upmerging branch 5.0-dev into it.

avatar drmenzelit
drmenzelit - comment - 20 Nov 2023

@richard67 I have no idea how this happened ...

avatar drmenzelit drmenzelit - change - 22 Nov 2023
Labels Added: ? PR-5.1-dev
avatar joomla-cms-bot joomla-cms-bot - change - 22 Nov 2023
Category Administration com_contact Language & Strings Repository NPM Change Unit Tests com_admin com_content com_contenthistory com_fields com_finder com_installer com_joomlaupdate com_media JavaScript com_menus com_messages com_templates com_users Administration com_contact Language & Strings Repository NPM Change Front End
avatar drmenzelit drmenzelit - change - 22 Nov 2023
Labels Removed: ?
avatar drmenzelit
drmenzelit - comment - 22 Nov 2023

@ceford can you please check if the warning dissapeared?

@chmst it seems showon doesn't work with fields using global options

avatar ceford ceford - test_item - 22 Nov 2023 - Tested successfully
avatar ceford
ceford - comment - 22 Nov 2023

I have tested this item ✅ successfully on 355fcdb

Tricky to follow the instructions but I got there - a list of articles with or without Intro Image and/or Intro Text.


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

avatar fgsw fgsw - test_item - 23 Nov 2023 - Tested successfully
avatar fgsw
fgsw - comment - 23 Nov 2023

I have tested this item ✅ successfully on 355fcdb

Thanks @drmenzelit


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

avatar richard67 richard67 - change - 23 Nov 2023
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 23 Nov 2023

RTC


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

avatar brianteeman
brianteeman - comment - 15 Dec 2023

The more I look at this the more I don't believe this should be in core. This PR just creates a very specific display of an article intro image and text. Which is fine but we know that people will want more control than that.

You only have to look at the display options in the content modules to see that.

image

Or then you will have the layout options that people might want as this looks like a blog layout but without the controls

image

Or some of the more basic options that we had to add to the Article Newsflash Module

image

In summary there is nothing in this PR that can not be achieved currently with a template override

avatar agimusweb agimusweb - test_item - 24 Feb 2024 - Tested successfully
avatar agimusweb
agimusweb - comment - 24 Feb 2024

I have tested this item ✅ successfully on 355fcdb


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

avatar bembelimen
bembelimen - comment - 2 Mar 2024

Hey @drmenzelit ,

thank you for your idea, I see your potential use case.

After many discussions I had to take a decision and I tend to agree with the statement, that this behaviour can be done via an easy override. So I will close it for now.

avatar bembelimen bembelimen - change - 2 Mar 2024
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2024-03-02 15:16:10
Closed_By bembelimen
Labels Added: RTC RMDQ
Removed: PR-5.0-dev
avatar bembelimen bembelimen - close - 2 Mar 2024
avatar fgsw
fgsw - comment - 2 Mar 2024

that this behaviour can be done via an easy override

… if you are a developer.

Not, if you are a user who can't change source codes. Overrides lacks a User Interface.

Add a Comment

Login with GitHub to post a comment