In Groupjive configuration on the Groups-All-Display tab there's a setting "Select ordering of groups"
This seems to only have an effect when displaying a list of groups as a menu item, and not when displaying a list of groups in a dropdown at registration using cbgjautojoin.
I tried this auto action but am struggling to make it work, please explain what I'm doing wrong.
Type-Query
Triggers-gj_onAfterCreateGroup
User-Automatic
Access-Everybody
Conditional-left as select operator, it say's this is optional
Query Action-
SET @cnt = 0;UPDATE #__groupjive_groups
SET ordering = @cnt := (@cnt+1)
ORDER BY name;
Mode-Internal
I created groups in the front end during registration using another auto action, and also in the back end and the ordering doesn't change.
Regards,
Andrew
The ordering parameter is only used for frontend displays and nothing else. It's also set automatically when saving a new group (ordered first as newest are always made first). If you need to change the order it's best to do it using the PHP API by adjusting the order column then running the update order function. To debug your query ensure Joomla debug mode is enabled and maximum error reporting is set.
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.