Skip to Content Skip to Menu

GroupJive Events custom fields

  • activha
  • activha
  • OFFLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
4 years 9 months ago - 4 years 9 months ago #316627 by activha
Replied by activha on topic GroupJive Events custom fields
Wonderful :-)

Can you tell me how to substitute the group with params when we have {"dropdown","10"} ??

The following does not seem to work
Code:
[cb:if [group]="{"dropdown","10"}" ]Catégorie Professionnels[/cb:if] [cb:if [group]="{"dropdown","20"}" ]Catégorie Particuliers[/cb:if] [cb:if [group]="{"dropdown","30"}" ]Catégorie Tout public[/cb:if]

It would be nice to be able to write for instance :
Code:
[cb:if [group_dropdown]="10" ]Catégorie Professionnels[/cb:if] [cb:if [group_dropdown]="20" ]Catégorie Particuliers[/cb:if] [cb:if [group_dropdown]="30" ]Catégorie Tout public[/cb:if]
Last edit: 4 years 9 months ago by activha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
4 years 9 months ago #316629 by krileon
Replied by krileon on topic GroupJive Events custom fields
You won't be able to at this time as it doesn't have parsing of params columns right now. That's a separate feature I have to implement as that will take significant amount of work and can not interrupt my current development timelines for that. You should be able to use a REGEXP operator in your IF substitution to do inline matching for the time being.


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
4 years 9 months ago - 4 years 9 months ago #316630 by activha
Replied by activha on topic GroupJive Events custom fields
Well also tried a simple
Code:
[cb:if [group] =~ "/10/" ]Catégorie Professionnels[/cb:if]
and
Code:
[cb:if [group] =~ /10/ ]Catégorie Professionnels[/cb:if]
or even
Code:
[cb:if [group] =~ "/^10/$" ]Catégorie Professionnels[/cb:if]
but neither seems to work
Last edit: 4 years 9 months ago by activha.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48541
  • Thanks: 8290
  • Karma: 1445
4 years 9 months ago #316637 by krileon
Replied by krileon on topic GroupJive Events custom fields
There's no spaces before and after the REGEXP operator. You're also doing an inline substitution which isn't supported. Try the below for example.

[cb:if group=~"/10/" ]Catégorie Professionnels[/cb:if]


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.

  • activha
  • activha
  • OFFLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
4 years 9 months ago #316640 by activha
Replied by activha on topic GroupJive Events custom fields
Oupss sorry for the spaces, working great !
thanks
The following user(s) said Thank You: krileon

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

  • activha
  • activha
  • OFFLINE
  • Posts: 2334
  • Thanks: 117
  • Karma: 13
4 years 8 months ago #317201 by activha
Replied by activha on topic GroupJive Events custom fields
Hello

It seems that with CB latest build Version: 2.4.4+build.2020.03.17.21.05.15.8869dd899 this failed to work, was perfectly fine before.
Code:
'GROUP_CAT_TARGET' => '[cb:if group=~"/10/" ]Campagne active: Professionnels et entreprises[/cb:if][cb:if group=~"/20/" ]Campagne active: Cible Particuliers[/cb:if][cb:if group=~"/30/" ]Campagne active: cible tout public[/cb:if][cb:if group=~"/50/" ]Campagnes souhaitées par les activateurs[/cb:if]'

Any changes ?

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

Moderators: beatnantkrileon
Powered by Kunena Forum