Skip to Content Skip to Menu

comma separated line issue

9 years 8 months ago #259199 by ninokorinteli
comma separated line issue was created by ninokorinteli
Hello,

i have |*| displaying on profile instead of comma in multiple check box fields

upgraded to CB 2.0.6 today.
have display on profile set to comma "'"-separated line in parameters


this is profile value layout in field parameters (all fields are multiple check boxes):


[cb:if cb_skills includes "acrobatics" cb_acrobatics!=""] acrobatics: [cb_acrobatics]; [/cb:if]
[cb:if cb_skills includes "acrobatics" cb_acrobatics=""] acrobatics;[/cb:if]
[cb:if cb_skills includes "aerial" cb_aerial !=""] aerial: [cb_aerial]; [/cb:if]
[cb:if cb_skills includes "aerial" cb_aerial =""] aerial; [/cb:if]


and this is how it looks on profile (copy/pasted below)


acrobatics: hand to hand|*|acrobatic tumbling;
aerial: static trapeze|*|Chinese pole|*|aerial rings;

what i am doing wrong?

thank you
nino

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 8 months ago #259253 by krileon
Replied by krileon on topic comma separated line issue
[FIELD_NAME] substitutions are raw value (as stored in database). You need to use the formatted substitution usage [cb:userfield field="FIELD_NAME" /]. Please see the below tutorial for further usage information.

www.joomlapolis.com/support/tutorials/107-use-cases/18353-using-substitutions-throughout-cb


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.

9 years 8 months ago #259271 by ninokorinteli
Replied by ninokorinteli on topic comma separated line issue
did i put [cb:userfield field="FIELD_NAME" /] correctly?

[cb:if cb_skills includes "acrobatics" cb_acrobatics !=""] acrobatics: [cb:userfield field="cb_acrobatics"/]; [/cb:if]

cause now it displays blank space on the profile view instead of rendering field's values

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48479
  • Thanks: 8282
  • Karma: 1443
9 years 8 months ago #259275 by krileon
Replied by krileon on topic comma separated line issue
Yes, that's correct. Ensure your Acrobatics field is set to display on profile otherwise userfield substitution can't substitute it in. If you don't want it visible on profile, but able to substitute you need to move it to a tab in 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