Keyword

Another Item Ordering Question

  • acymru
  • acymru's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #148994 by acymru
Another Item Ordering Question was created by acymru
I have a multi-category menu item with Ordering set to Ordering. The K2 category tree has one level 1 category, 2 level 2 categories, each of those 2 having a number of level 3 categories. The categories selected in the menu item are all the level 3 categories. The subsequent category view that is generated by the menu item lists the K2 items in order, but alternating between the level 3 category items according to the ordering of the level 2 items.
For example, my categories, as ordered:
  • Pets
    • Dogs
      • Boxers
        • One
        • Two
      • Shepherds
        • Three
        • Four
    • Cats
      • Tabbies
        • Five
        • Six
      • Calicos
        • Seven
        • Eight
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
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149011 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
Hi,

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
  • Joe Campbell's Avatar
  • User
More
9 years 5 months ago #149022 by Joe Campbell
Replied by Joe Campbell on topic Another Item Ordering Question
Can this same "featured ordering" solution be used for a tag list produced from a menu item?

Please Log in or Create an account to join the conversation.

  • Lefteris
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149034 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
@Joe Campbell

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
  • Joe Campbell's Avatar
  • User
More
9 years 5 months ago #149044 by Joe Campbell
Replied by Joe Campbell on topic Another Item Ordering Question
@Lefteris Is it possible to order a tag page? If so, how?

Please Log in or Create an account to join the conversation.

  • Lefteris
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149059 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
@Joe Campbell

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
  • Joe Campbell's Avatar
  • User
More
9 years 5 months ago #149068 by Joe Campbell
Replied by Joe Campbell on topic Another Item Ordering Question
I tried both (item ordering parameters) but when I select the desired tag on the backend item list page, then click the order button - I am unable to control the ordering properly. When I drag an item it only allows me to between "groupings" of items, instead of offering the ability to move the item in between any item within the list.

Is the method I tried correct? What could be causing the issue?

Please Log in or Create an account to join the conversation.

  • Lefteris
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149083 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
@Joe Campbell

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
  • Joe Campbell's Avatar
  • User
More
9 years 5 months ago #149093 by Joe Campbell
Replied by Joe Campbell on topic Another Item Ordering Question
@Lefteris - so it looks like this would be another limitation of tags vs. additional categories.

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
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149113 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
The order parameter is there allowing you to use ordering. But it will ignore the category order, it will just use the item order showing first all the first items of all categories, then the second items etc.

Please Log in or Create an account to join the conversation.

  • acymru
  • acymru's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #149330 by acymru
Replied by acymru on topic Another Item Ordering Question
Featured ordering isn't working in my case. I've set all items to Featured, and set the menu item to Order by Featured. I've confirmed in the database that the featured_ordering column in #__k2_items contains the proper values. However, the front end display does not match. I've posted to imgur a screenshot of a direct db query listing items by featured_ordering and a screenshot of the live display.

imgur.com/a/M6QVg

Please Log in or Create an account to join the conversation.

  • Lefteris
  • Lefteris's Avatar
  • User
More
9 years 5 months ago #149345 by Lefteris
Replied by Lefteris on topic Another Item Ordering Question
Ensure that you are editing the correct settings in the correct place. In order to have featured sorting enabled you need to show only featured items in the specific page and set "Item Ordering" to "Ordering".

Please Log in or Create an account to join the conversation.

  • Paul Uhl
  • Paul Uhl's Avatar
  • User
More
9 years 5 months ago #149382 by Paul Uhl
Replied by Paul Uhl on topic Another Item Ordering Question
Ive been trying to get this to work and haven’t been able to get anything to happen. With all articles set to Featured, I’ve:

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
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149420 by Krikor Boghossian
Replied by Krikor Boghossian on topic Another Item Ordering Question
Please do not double post.
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
  • Paul Uhl's Avatar
  • User
More
9 years 5 months ago #149448 by Paul Uhl
Replied by Paul Uhl on topic Another Item Ordering Question
Based on the original post above about Pets/Dogs/Cats, I've set K2 > Categories:

• 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
  • acymru's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago #149458 by acymru
Replied by acymru on topic Another Item Ordering Question
K2 Items view and Categories view in the backend, where Ordering exists, throws a jquery error:

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
  • Krikor Boghossian's Avatar
  • User
More
9 years 5 months ago #149476 by Krikor Boghossian
Replied by Krikor Boghossian on topic Another Item Ordering Question
Can you check the network tab for the request?

Please Log in or Create an account to join the conversation.

  • acymru
  • acymru's Avatar Topic Author
  • Offline
  • New Member
More
9 years 5 months ago - 9 years 5 months ago #149487 by acymru
Replied by acymru on topic Another Item Ordering Question
Everything comes through as Status 200. What else would I be checking for?

"/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.
Last edit: 9 years 5 months ago by acymru. Reason: Added request detail

Please Log in or Create an account to join the conversation.

  • Paul Uhl
  • Paul Uhl's Avatar
  • User
More
9 years 4 months ago #149762 by Paul Uhl
Replied by Paul Uhl on topic Another Item Ordering Question
Is there an update to this topic thread?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum