Skip to Content Skip to Menu

cb_autoactions redirect based on user group

  • kommid
  • kommid
  • OFFLINE
  • Posts: 62
  • Thanks: 11
  • Karma: 0
7 years 1 month ago - 7 years 1 month ago #297486 by kommid
Hi,
once again I'm struggeling to create some auto actions....
How can use non-community builder-field-values (like current url, users' groups, etc...) as value on the left side of an auto actions's condition? (see image)

to be honest, the documentation of auto actions seems a little thin....
Best Regards
Markus
Attachments:
Last edit: 7 years 1 month ago by kommid.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
7 years 1 month ago #297501 by krileon
Replied by krileon on topic cb_autoactions redirect based on user group
You can access GET variables with [get_VARIABLE], POST variables with [post_VARIABLE], PHP Session variables with [session_VARIABLE]. In addition to whatever fields you've available within CB > Field Management using normal substitutions. See the below tutorial for substitution usage information.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18353-using-substitutions-throughout-cb

You can also access trigger variables using [var1-15]. For example if the first variable of a trigger is a user object you can grab that user objects username with [var1_username]. All of this is explained as part of the User parameter description. See the below tutorial for trigger variable information.

www.joomlapolis.com/documentation/279-community-builder/tutorials/18358-using-cb-triggers

There is no substitution for the current URL. As for usergroups the best way to condition against those is to not condition against them and instead adjust the Access for the auto action it self. If necessary to condition against them then I suggest using the IF substitutions shown at the bottom of the substitution tutorial.

to be honest, the documentation of auto actions seems a little thin....

It's a tool. There's nothing beyond the parameter descriptions to document. What you're asking for is a usecase tutorial, which yes we have very few of. We can't know what GET/POST/SESSION values your install has available so it's impossible to document some of the things you're asking about. I highly suggest reading parameter descriptions carefully.


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.

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

Moderators: beatnantkrileon
Powered by Kunena Forum