-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.2] [GSoC 21] Core Enhancement 3 - Merge Featured into Articles #35228
Conversation
This comment was marked as abuse.
This comment was marked as abuse.
administrator/components/com_content/src/View/Articles/HtmlView.php
Outdated
Show resolved
Hide resolved
* @package Joomla.Administrator | ||
* @subpackage com_content | ||
* | ||
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a moved file from
administrator/components/com_content/tmpl/featured/default_stage_footer.php
* @package Joomla.Administrator | ||
* @subpackage com_content | ||
* | ||
* @copyright (C) 2019 Open Source Matters, Inc. <https://www.joomla.org> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as above its not new just moved
Sadly, No. |
administrator/components/com_content/src/View/Articles/HtmlView.php
Outdated
Show resolved
Hide resolved
administrator/components/com_content/src/Controller/ArticlesController.php
Outdated
Show resolved
Hide resolved
If you only moved the "Featured" filter to set it using GET, that works as well with: |
Sorting by Featured does not update the icon-sort to caret up/caret down. |
Updates:
|
Will |
No, it will stay but it's navigation url will be different. This new url will point to the articles (instead of featured) view and it will pass the filter of featured=1 that will be applied in the search tools to only show featured articles |
Two menu items are highlighted. Also, see #28003 for request to remove it. |
The double highlighting is because of an unrelated bug in menu highlighting |
administrator/components/com_content/src/View/Articles/HtmlView.php
Outdated
Show resolved
Hide resolved
administrator/components/com_content/src/Model/ArticlesModel.php
Outdated
Show resolved
Hide resolved
#19886 could be obsolete for 4.x with this PR This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35228. |
This pull request has been automatically rebased to 5.0-dev. No new features will be merged into Joomla! 4.3 series. Joomla! 4.4 series is a bridge release to make migration from Joomla! 4 to 5 as smooth as possible. |
This pull request has been automatically rebased to 5.1-dev. |
This pull request has been automatically rebased to 5.2-dev. |
I have tested this item 🔴 unsuccessfully on 293c6b9 500 Layout default_batch_footer not found. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35228. |
@ChrisHoefliger Please check each pull request (PR) on GitHub before testing. If the PR shows conflicting files at the bottom on GitHub, it doesn't make much sense to test it. Please change back your test result to "Not tested". Thanks in advance. |
I have tested this item 🔴 unsuccessfully on 293c6b9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35228. |
I have not tested this item. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35228. |
You must have misunderstood as it is not already present |
?? |
I have tested this item 🔴 unsuccessfully on 293c6b9 An error has occurred. Function Location1 () JROOT/libraries/src/MVC/View/HtmlView.php:425 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/35228. |
@cybersalt I would say that's expected. If you go to this PR here on GitHub #35228 and scroll to the bottom you will see that this PR has lots of conflicting files. As long as this is the case, it doesn't make sense to test this PR. See also my previous comment here #35228 (comment) . |
This PR is so good and should go into 6.0 due to b/c breaks it cannot go into 5.x. Closing this one for now to avoid confusion. |
Project Repo PR: joomla-projects/gsoc21_core-enhancements#11
Plan Document: https://docs.google.com/document/d/1Pl8JGa2hkYkmJzQOn9_mS8a4imDmqc2a/edit#heading=h.t5tri5tytv7q
view=featured
Summary of Changes
[A] New Selector Dropdown
A searchtools selector is added that can be used to toggle between:
[B] Model Merged
$featured
variable is used as a condition to manipulate the query to adjust to Featured[C] Templates Merged
state->get('featured')
to conditonally render the template code as per featured or not.[D] Views Merged
state->get('featured')
to conditonally render the toolbar options[E] Controller Merged
Testing Instructions
Expected result AFTER applying this Pull Request
Everything works normally
Mentors
@chmst @nibra @bembelimen
(and thanks @richard67)