Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] Delimiter and multiselect field output

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
12 years 2 weeks ago - 11 years 2 months ago #212538 by dotcom22
hello

I have a multiselect field with some items and I would like output value of this field using a delimiter field.

When I do that I noticed the output display look like this:

Item1|*|Item2|*|Item3

and I would like get this format:

Item1, Item2, Item3

No matter what kind of "Display on profiles as" options I choose (comma or list) for my multiselect field because the delimiter output don't change.

any suggestion?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 11 years 2 months ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
12 years 2 weeks ago #212549 by krileon
Replied by krileon on topic Re: Delimiter and multiselect field output
[FIELD_NAME] is always raw output. You need to use the below type of substitution.

[cb:userfield field="FIELD_NAME" /]

Please see the below tutorial for further substitution usage information.

www.allmysocials.com/directory/tutorials/item/233-substitution-usage


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 2 months ago - 11 years 2 months ago #232369 by dotcom22
Replied by dotcom22 on topic Re: Delimiter and multiselect field output
sorry to re-open this topic but I still get problem with this.

When I use [cb:userfield field="cb_mymultiselect" /] nothing is displayed and the fact to use a delimiter don't change nothing. The only way seem to use [cb_mymultiselect] but as I say the result look like:

Item1|*|Item2|*|Item3

instead to:

Item1, Item2, Item3.

A bug ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 11 years 2 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232389 by krileon
Replied by krileon on topic Re: Delimiter and multiselect field output
Not a bug, but an access issue. The field needs to be on a public and published tab and the field also needs to be set to display on profile. That's the only way for formatted output to be publicly substituted. If you've CB Privacy or CB Conditional configured for it then it can also cause the formatted output to hide. The easiest test to see if it'll substitute publicly is navigate to a profile and see if you can see the field there.


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.

  • dotcom22
  • dotcom22
  • OFFLINE
  • Posts: 522
  • Thanks: 14
  • Karma: 4
11 years 2 months ago - 11 years 2 months ago #232411 by dotcom22
Replied by dotcom22 on topic Re: Delimiter and multiselect field output
yes you right..the field was in a tab set for Special Access level. This is annoying and I don't see how to solve this issue. In fact fields inside this tab are planned for be edited only by SuperAdmin but I need to display publicly some field value.

So I can without problem display value for all other fields using [cb_myfield] except for this select-field where is required to use [cb:userfield field="cb_mymultiselect" /] for formatting constraint.

That's the only way for formatted output to be publicly substituted.


You have really not another way ?

I use Joomla 3.3.6 - CB 2.0.4 - CBSubs 4 - Several Incubator plugins
Last edit: 11 years 2 months ago by dotcom22.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #232441 by krileon
Replied by krileon on topic Re: Delimiter and multiselect field output

In fact fields inside this tab are planned for be edited only by SuperAdmin but I need to display publicly some field value.

You can use CB Privacy and disable the tabs edit display except for Moderators as it has a feature specifically to do this. This way profile edit is limited to Moderators and frontend view is still completely public. If you don't want the fields displayed on profile, but still need them public you can then move the tab to a not shown on profile tab position.


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