- Posts: 12
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Reorder problem in featured articles in Joomla 3
[SOLVED] Reorder problem in featured articles in Joomla 3
- mxmauro
- Topic Author
- Offline
- New Member
Less
More
11 years 3 months ago #115212
by mxmauro
[SOLVED] Reorder problem in featured articles in Joomla 3 was created by mxmauro
Hi,
Lets say I have 5 articles named A,B,C,D,E and want to set the following order: B,D,E,A,C
I move, for e.g., B to the first place (all in the backend) ok... then I move D to the second place and appears ok. but when refresh with F5, I get D in the last place.
I think the problem is related to duplicated ordering numbers in the database field, but I don't know how to fix that.
In Joomla 2.5 one could retype all the order indexes and save them. Now I can't.
Also I ask here because anyone can tell me if I can edit the k2 orderding in another way.
Thanks,
Mauro.
Lets say I have 5 articles named A,B,C,D,E and want to set the following order: B,D,E,A,C
I move, for e.g., B to the first place (all in the backend) ok... then I move D to the second place and appears ok. but when refresh with F5, I get D in the last place.
I think the problem is related to duplicated ordering numbers in the database field, but I don't know how to fix that.
In Joomla 2.5 one could retype all the order indexes and save them. Now I can't.
Also I ask here because anyone can tell me if I can edit the k2 orderding in another way.
Thanks,
Mauro.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 3 months ago #115213
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Reorder problem in featured articles in Joomla 3
Hi. I just tested with no issues. Do all the items belong to the same category? This is a requirement since ordering can only work for items within the same category. If you need ordering for items which belong to different categories you need to use the featured flag and the featured ordering column. Also if you have a tool like Firebug you can use it to inspect the AJAX request fired when you drop an item. The response of the request should be something like "1". If you see an error message there instead of "1" let me know.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- mxmauro
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
11 years 3 months ago - 11 years 3 months ago #115214
by mxmauro
Replied by mxmauro on topic Re: Reorder problem in featured articles in Joomla 3
Hi,
I attached some screenshots. I'm trying to order featured items in different categories so I filter featured items.
Screenshot 1 has the initial ordering. Now I move "Noches abiertas" to the second place. It returns 1 as you said.
Reload the page and I get the expected ordering. Now I move "Cuestiones de ética" to the third place as shown in screenshot 3. It returns 1 too.
But when I reload the Component -> K2 -> Items page I get the screenshot 4.
Thanks,
Mauro.
EDIT: Updated to 2.6.7 and issue persists.
I attached some screenshots. I'm trying to order featured items in different categories so I filter featured items.
Screenshot 1 has the initial ordering. Now I move "Noches abiertas" to the second place. It returns 1 as you said.
Reload the page and I get the expected ordering. Now I move "Cuestiones de ética" to the third place as shown in screenshot 3. It returns 1 too.
But when I reload the Component -> K2 -> Items page I get the screenshot 4.
Thanks,
Mauro.
EDIT: Updated to 2.6.7 and issue persists.
Please Log in or Create an account to join the conversation.
- mxmauro
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
11 years 3 months ago #115215
by mxmauro
Replied by mxmauro on topic Re: Reorder problem in featured articles in Joomla 3
Tried again and added additional info (post data):
I don't know very well about Joomla 3 internals but why, on the same page, the order[] array has a different value (28 becomes 12)
Regards,
Mauro.
search: filter_trash:0 filter_featured:1 filter_category:0 filter_author:0 filter_state:-1 language: limit:20 limitstart:0 order[]:7 order[]:10 order[]:11 order[]:28 order[]:20 order[]:21 order[]:24 order[]:25 option:com_k2 view:items : filter_order:i.featured_ordering filter_order_Dir:asc boxchecked:0 80e4e42561be2c282bc4840a5b4b4872:1 cid[]:325 cid[]:328 cid[]:330 cid[]:298 cid[]:322 cid[]:197 cid[]:312 cid[]:324 | search: filter_trash:0 filter_featured:1 filter_category:0 filter_author:0 filter_state:-1 language: limit:20 limitstart:0 order[]:7 order[]:10 order[]:11 order[]:12 order[]:20 order[]:21 order[]:24 order[]:25 option:com_k2 view:items : filter_order:i.featured_ordering filter_order_Dir:asc boxchecked:0 80e4e42561be2c282bc4840a5b4b4872:1 cid[]:325 cid[]:328 cid[]:298 cid[]:330 cid[]:322 cid[]:197 cid[]:312 cid[]:324 |
I don't know very well about Joomla 3 internals but why, on the same page, the order[] array has a different value (28 becomes 12)
Regards,
Mauro.
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 3 months ago #115216
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Reorder problem in featured articles in Joomla 3
I managed to reproduce the issue. The first time you click to sort by the ordering column. Then you filter only featured items so you can modify the featured ordering value. But if you refresh your page you still get the items ordering by the normal sorting. If you click again on the sorting column the sorting is updated and you will see what you expect. The good news is that the issue is just visual, values are saved correctly in the database which means that your site should work according to the ordering you make. We are gonna look into this.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 3 months ago #115217
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Reorder problem in featured articles in Joomla 3
I applied a fix. Please grab the SVN version and let me know if it works as it should now.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BBC
- Offline
- Platinum Member
Less
More
- Posts: 663
11 years 3 months ago #115218
by BBC
You are a good man, you fix broken Joomla things. I have that problem with plugins and modules lists since they introduced that (jQuery ?) sorting option.
Last 2 weeks i made websites in Drupal and Wordpress, and guess what, sorting via drag and drop goes 100% perfectly smooth and OK.
Why Joomla ? Why always stupid Joomla ?
Replied by BBC on topic Re: Reorder problem in featured articles in Joomla 3
Lefteris Kavadas wrote: I applied a fix. Please grab the SVN version and let me know if it works as it should now.
You are a good man, you fix broken Joomla things. I have that problem with plugins and modules lists since they introduced that (jQuery ?) sorting option.
Last 2 weeks i made websites in Drupal and Wordpress, and guess what, sorting via drag and drop goes 100% perfectly smooth and OK.
Why Joomla ? Why always stupid Joomla ?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
11 years 2 months ago #115219
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Reorder problem in featured articles in Joomla 3
I want to be honest, this is more like a workflow issue than a Joomla! bug. In any case i am glad that it worked. Thanks for your feedback.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- BBC
- Offline
- Platinum Member
Less
More
- Posts: 663
11 years 2 months ago #115220
by BBC
Replied by BBC on topic Re: Reorder problem in featured articles in Joomla 3
Yes you can say a lot in defense od Joomla, i understand that.
But i worked with Seblod. Script made by one poor guy, and drag and drop sort never made problems.
One poor guy against a horde of core Joomla retarded and autistic developers.
I am so tired of this ****.
But i worked with Seblod. Script made by one poor guy, and drag and drop sort never made problems.
One poor guy against a horde of core Joomla retarded and autistic developers.
I am so tired of this ****.
Please Log in or Create an account to join the conversation.
- mxmauro
- Topic Author
- Offline
- New Member
Less
More
- Posts: 12
11 years 2 months ago - 11 years 2 months ago #115221
by mxmauro
Replied by mxmauro on topic Re: Reorder problem in featured articles in Joomla 3
Excellent news, I will apply the fix and post the results.
Thank you very much.
EDIT: Checked and works fine. Thanks again.
Thank you very much.
EDIT: Checked and works fine. Thanks again.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- [SOLVED] Reorder problem in featured articles in Joomla 3