Skip to Content Skip to Menu

Problems with CB Substitutions

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
6 years 8 months ago #301675 by timstohr
Problems with CB Substitutions was created by timstohr
Hi Kyle,
I want to present a couple of fields in an article using the CB Content Bot (or CB content Module, no idea yet which)

I would like to present the whole field, so including the field title and then the field value (just like a CB Field is represented on the profile). I have tried all kinds of substitution but somehow I do not manage.

What format do I need to use if I want to show the whole field (like on the profile)?

And what format do I need to use if I want to show a whole tab with all of its contents just like on the profile?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48444
  • Thanks: 8279
  • Karma: 1443
6 years 8 months ago #301707 by krileon
Replied by krileon on topic Problems with CB Substitutions
You'd do that using the formatting parameter for the substitution. By default substitutions output with formatting set to none so it's just the field value. Profiles displays fields with a formatting of div. So the below for example would display same as profile.

[cb:userfield field="FIELD_NAME" formatting="div" /]


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