[4.0] Schedule featured articles#25979
Conversation
|
In joomla 4 we are trying to avoid useless descruiptions on fields so you can just delete the _DESC strings |
richard67
left a comment
There was a problem hiding this comment.
Fix PHP code style errors repored by Drone PHPCS here: https://ci.joomla.org/joomla/joomla-cms/22504/1/9
|
I tested it. The result was successful. |
|
@impressionestudio please mark your test as successfully (how to: https://docs.joomla.org/Testing_Joomla!_patches#Recording_test_results) |
|
@franz-wohlkoenig This PR has PHPCS errors, I've reviewed accordingly. |
I installed Joomla Patch Tester, applied the patch and then the page crashed with errors like:
|
|
@impressionestudio apologies, i didn't thought that j4 can't be testet by patchtester – @richard67 can you please advise @impressionestudio? |
|
@impressionestudio Patchtester has to be latest version 3.0.0-beta4. After having applied the patch, you have to run the SQL statements in file Or if you are on a testing environment where you can do that, also apply the patch, then delete all tables from your database, remove configuration.php and makle a clean new installation. |
|
See PR #25760 to see how to convert datetime to null value. |
|
@richard67 thank you for the instructions and @franz-wohlkoenig for the answers. I have installed the latest version 3.0.0-beta4. |
|
@impressionestudio there's a plan to make patchtester ready fpr j4 – which also would help me to test :-).
|
|
I will test this PR after @Quy 's suggestions will be implemented. |
Co-Authored-By: Quy <quy@fluxbb.org>
Co-Authored-By: Quy <quy@fluxbb.org>
|
@Quy Is there something to be done with datetime null values in this PR? I see your comment above but can‘t see to what in the code it is related. |
|
@franz-wohlkoenig The patch tester component never did run the schema updates (these are those sql scripts with date and version in their name) because if it would do that, it would also need a kind of undo script to revert the changes. This was always the case and is same for J3 and J4, so you always have to run the SQL manually. Only difference on J4 is that when a PR changes js or (s)css, you have to run |
|
as already reported on the original pr for j3 here #18052 (review) and here #18052 (comment) " |
|
@richard67 In the queries, use Replace |
|
This is a nice feature! :) |
|
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25979. |
|
I have tested this item ✅ successfully on 04dd1ea This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25979. |
|
I have tested this item ✅ successfully on 04dd1ea This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25979. |
|
I have tested this item 🔴 unsuccessfully on 04dd1ea This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25979. |
|
@rmittl The reason is that this Pull Request contains SQL changes, and the Patchtester does not run those changes. You have to apply the SQL from the update sql script manually e.g. in PypMyAdmin. See the following comments above: #25979 (comment) So please either set your test result back to "I have not tested this item" in the issue tracker, or test again in the right way, e.g. including manual execution of the SQL changes, and set then the appropriate test result in the tracker. |
|
I have tested this item ✅ successfully on 04dd1ea This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/25979. |
|
Thanks for your patience on this over the last 2 years! |
|
Thanks to everybody who helped to create this feature. |
|
@wilsonge It seems there is an issue, #26829 , related to this PR. When checking the changed files here, I see stuff for handling featureed up and down times to the content table class, but during development of this PR, the 2 new columns have been moved to the |
|
Today, I installed Joomla 4.0 beta 2. |
|
@WoodyF4u The feature is already present. But it might be difficult to find. It's in |
|
@SharkyKZ by that logic the start publishing dates should be moved as well |
|
@SharkyKZ Thanks for pointing me to the Publishing tab. |
|
@brianteeman Yes, I think it is fine when the fields are in the Publishing tab. |
|
@WoodyF4u You first have to change the featured state to "Featured". Then you can set the start and end times (featured up and featured down). Then the times are respected when showing it on a featured page. Published up and down should work in the same way, by the way. |
|
@riochard67 Thanks. That works! |
|
Yes, it's not very intuitive how it works. Could be really improved. |
|
Please look at the first screenshpot of this PR. There you see the Featured ON-OFF switch. I am not a developer, but I hope someone can fix this for he next beta so we can test it again and maybe approve it for Joomla! 4. |

Pull Request for Issue #13596.
J4 rebased PR #18052
Summary of Changes
Added two fields in the article editor featured_up (Start Featured) and featured_down (End Featured)

An article is featured if featured is yes and (featured_up is null or is less than or is equal to now) and (featured_down is null or is greater than or is equal to now)
Testing Instructions
Create 5 articles:
Create an Articles » Featured Articles menu item
Create a News Flash module and set the option Featured Articles to Only show Featured Articles.
Expected result
Only the articles 2 and 5 will be shown in the Articles » Featured Articles menu item and in the News Flash module.
Actual result
Documentation Changes Required