- Posts: 5
COMMUNITY FORUM
Another Item Ordering Question
- acymru
-
Topic Author
- Offline
- New Member
For example, my categories, as ordered:
| And the display of the page generated by the multi-category menu item with the categories Boxers, Shepherds, Tabbies and Calicos selected is as such: One Three Two Four Five Seven Six Eight As you can see, K2 runs through the ordering of the items first following the ordering of the direct parent category, then the item in alternating fashion. The goal, however, is the have the page display as: One Two Three Four Five Six Seven Eight Is this possible? |
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
Items ordering has meaning only inside a single category. Each category has an item with ordering 1,2 etc. In order to have custom ordering for items across multiple categories you are recommended to use the featured ordering:
1. Make those items featured.
2. Apply the desired featured ordering.
3. Create a menu link to those categories and set it up to fetch featured items only.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- User
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
This ordering is applied when the list contains only featured items. Unfortunately since there is no option to do that in K2 tags menu it will not work.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- User
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
There is an option in K2 parameters which allows you to select the desired ordering. You can also create a menu link to a tag if you want to override that global option.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- User
Is the method I tried correct? What could be causing the issue?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
Custom ordering is only applied within the context of categories, not tags. The option i mentioned before allows you to order items by title, hits etc.
Please Log in or Create an account to join the conversation.
- Joe Campbell
-
- User
It seems a bit odd, as the "order" parameter is present as on option.
Is this a feature that can be accomplished (plugin, template override, future K2 releases)?
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
Please Log in or Create an account to join the conversation.
- acymru
-
Topic Author
- Offline
- New Member
- Posts: 5
imgur.com/a/M6QVg
Please Log in or Create an account to join the conversation.
- Lefteris
-
- User
Please Log in or Create an account to join the conversation.
- Paul Uhl
-
- User
1) Menu: Under Menus > Sailboats > Blog Layout I changed ‘Featured Articles’ from Use Global to Only
2) K2 Category: Under K2 Categories > Brokerage Boats > Category Item layout > Other Layout Options I changed ‘Item Ordering’ from Default to Ordering
3) K2 Category: Under K2 Categories > Brokerage Boats > Category View Options > Sub-category Handling I changed Default to Ordering
Nothing happens.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- User
You are only slowing the process down and you will not receive an answer sooner.
Please Log in or Create an account to join the conversation.
- Paul Uhl
-
- User
• Set Pets, Dogs and Cats as follows:
Category Item layout: Other Layout Options: to Featured First
Category View Options: Sub-category handling: to Ordering
• Set all child categories under Dogs and Cats as follows:
Category Item layout: Other Layout Options: to Featured First
Category View Options: Sub-category handling: to Ordering
What I see now is:
1) All the DOGS appear in order (largest to smallest) but then are followed by all the CATS in order (largest to smallest). What I need to have are all DOGS and CATS mixed together and displayed in order, by size, descending largest to smallest.
2) If I leave the K2 admin ITEMS interface, view one of the items, and then exit (cancel) and go back to K2 Items, for some reason the order of ALL my Items (Dogs and Cats) changes. I've been ordering them in Featured state.
Please Log in or Create an account to join the conversation.
- acymru
-
Topic Author
- Offline
- New Member
- Posts: 5
Uncaught TypeError: Cannot read property 'length' of undefined
Looking at the database while I change ordering, I'm seeing a lot of craziness. Essentially, when the ordering is changed, the featured_ordering column values are just randomly scrambled, so that the result bears absolutely no relationship to the intent.
Perhaps what we're dealing with here is an AJAX error? On the site, the ordering in the native Joomla Articles Manager throws no errors.
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
-
- User
Please Log in or Create an account to join the conversation.
- acymru
-
Topic Author
- Offline
- New Member
- Posts: 5
"/administrator/index.php?option=com_k2&view=items&task=savefeaturedorder&format=raw" request is also Status 200.
And, I've established, the jquery errors are triggered specifically when I click the ordering arrows to enable the ordering.
Please Log in or Create an account to join the conversation.
- Paul Uhl
-
- User
Please Log in or Create an account to join the conversation.