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
Added drag and drop functionality to the item ordering of featured articles (Ref #8138) #9564
Conversation
This seems to work but it is a little confusing (to me at least) as the number doesnt change on screen until after a page refresh This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
JHtml::_('sortablelist.sortable', 'articleList', 'adminForm', strtolower($listDirn), $saveOrderingUrl); | ||
} | ||
|
||
$assoc = JLanguageAssociations::isEnabled(); |
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.
hi. why is this ($assoc = JLanguageAssociations::isEnabled();
) added here?
I think the column "Ordering" should be removed completely (like at articles). This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
I will update the PR according to the given feedback. |
Subscribed. Let us know when this PR is updated. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
I have tested this item 🔴 unsuccessfully on 8da42a6 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
This PR has received new commits. CC: @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
I have updated the PR removing the ordering column as suggested and now the featured article listing looks exactly like the article listing. Thanks |
I have tested this item ✅ successfully on 1c6d138 Full Success This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
I have tested this item ✅ successfully on 1c6d138 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
@nishadi it seems fine now. thanks for your contributions. I would make two modifications:
UPDATE see the 2 patches i made to your repository, if all ok for you, accept them. |
allow ordering across categories
This PR has received new commits. CC: @lunalars, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
ordering options order like columns order
This PR has received new commits. CC: @lunalars, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
@andrepereiradasilva |
@Webdongle sorry? my patch only removed the limitation do order between multiple categories, as it should be. Before the patch has limited to order with drag and drop in one category, after the patch you can order with drag and drop between several categories. See ab1d799 Are you testing with this settings in the feature menu item? |
@andrepereiradasilva when I tested before your pr was added the articles displayed correctly in the front end. It could have been the removal of the 'Ordering' column'. If @nishadi checks by removing each edit and setting the menu item 1 column then that should show which broke it Also point of testing etiquette ... although it;s not your patch you have added to it. Therefore should your test results in the tracker be discounted ? I mean no disrespect by that question. |
ok, so no problem with my patch them.
Actually it makes perfectly sense. If i contributed to the PR i shouldn't mark test results. Thank you for the warning. I removed my test result. |
There is a Category order in the menu item edit screen and imho removing sortable-group-id="catid; ?>" messed up the way the Component reads the menu item settings. Thae Category order Setting in the menu item edit screen may be redundant (I have yet to test) but methinks it is required. Because the webmaster may wish to display Category order first then other order per category. Cats Dogs Therefore removing sortable-group-id="catid; ?>" breaks the usability in any case. And that change should be reverted. This is not a 'knock' at your efforts. ... they are appreciated. Just that I test/post in a 'matter of fact' way without emotion. |
@Webdongle |
That "Category order" option is for, when you have feature articles in several categories, order by that "Category order" first and then by "Article order" (the next field). You can see that behaviour in https://github.com/joomla/joomla-cms/blob/staging/components/com_content/models/featured.php#L124-L130 My change does not change that. In fact, i made the change to allow the use of "Category order = No order" when you have feature articles in multiple categories, like it was before this PR. |
I have tested this item ✅ successfully on 75cba61 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
Yep ... that was it had wrong sort column. Have deleted my previous test result and added a successful one. Thanks for finding my PEBKAC I know what the "Category order" option is for. Had to have breakfast before I had chance to test. I changed the category of one of the featured articles ... applying the patch had no adverse affect. |
@lunalars can you test this again after latest changes so it has to successfully tests. |
I have tested this item ✅ successfully on 75cba61 (And sorry for being late) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
Thanks for testing the PR |
RTC - thanks This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9564. |
@nishadi cloud you please check the merge conflicts, thanks |
Thank you for creating this. It’s been some time since you created this and there are now some merge conflicts that prevent a direct merge. To save time I have created a new Pull Request from your code and am closing this here. Check #10313 |
… (#10313) * Added drag and drop functionality to the item ordering of featured articles * Removed ordering column from featured articles * ordering options order like columns order * allow sorting across categories * Merge branch 'staging' of https://github.com/nishadi/joomla-cms into nishadi-staging Fixed Conflicts: # administrator/components/com_content/views/featured/tmpl/default.php * Updated with changes from #10062
Pull Request for Issue #8138
Summary of Changes
Added ordering Heading button
Added sort-able drag and drop button with drag and drop functionality
Added save ordering functionality to save the ordering when the items are sorted with drag and drop
Testing Instructions