User tests: Successful: Unsuccessful:
New layout for articles in contact.
Added two new parameters in the contact component to display the intro image and the introtext of an article inside a contact.
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.
A simple list of linked articles titles.
Apply the PR, run "npm run build:css"
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
Category | ⇒ | Administration com_contact Language & Strings Repository NPM Change Front End |
Status | New | ⇒ | Pending |
Labels |
Added:
Language Change
NPM Resource Changed
PR-5.0-dev
|
Title |
|
Title |
|
Labels |
Added:
Feature
|
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 pull request has been automatically rebased to 5.1-dev.
Works for me. But why did you use the showon="show_articles:1" only in com.config and not for menu Items?
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 |
@drmenzelit It seems you've messed this PR which now has base branch 5.1-dev by upmerging branch 5.0-dev into it.
@richard67 I have no idea how this happened ...
Labels |
Added:
?
PR-5.1-dev
|
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 |
Labels |
Removed:
?
|
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.
I have tested this item ✅ successfully on 355fcdb
Thanks @drmenzelit
Status | Pending | ⇒ | Ready to Commit |
RTC
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.
Or then you will have the layout options that people might want as this looks like a blog layout but without the controls
Or some of the more basic options that we had to add to the Article Newsflash Module
In summary there is nothing in this PR that can not be achieved currently with a template override
I have tested this item ✅ successfully on 355fcdb
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.
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 |
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.
isnt this something btter left as a template override.