I have an issue with the ordering in which the groups are displayed when listing a category. For example, with the URL "index.php?option=com_comprofiler&view=pluginclass&plugin=cbgroupjive&action=categories&id=3"
When groups are made, the DB field "ordering" is not updated correctly, so there are groups with duplicated "ordering" numbers (1). And so the newest group will not always be display at the first position.
In my case, the ordering should be - ORDER BY 'id' DESC - so that newest groups will always be on first position at category display. Off course, I can create an CB Auto Action triggered every time a new group is added/changed with the SQL-code below:
Code:
SET @cnt = 0; UPDATE #__groupjive_groups SET ordering = @cnt := (@cnt+1) ORDER BY id DESC;
But it would be nicer for system maintenance and system performance if I could fix the problem where it goes wrong, instead of running performance consuming queries time after time to fix the symptoms of that problem, the rest of my life .
Groups have an order group. They're grouped by category id. So yes they will have duplicate ordering numbers, but that's perfectly normal. Group order within categories is customizable. Navigate to CB GroupJive > Parameters > Categories > Groups and adjust "Order By", which should already be defaulted to "Date DESC" in which case the order parameter is irrelevant as it's ordering entirely by date.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.