Skip to Content Skip to Menu

🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

Formatting and cb content module

  • Ntelos
  • Ntelos
  • OFFLINE
  • Posts: 95
  • Thanks: 4
  • Karma: 0
11 years 8 months ago #225304 by Ntelos
Formatting and cb content module was created by Ntelos
Hello there,

I try to use CB content module to show the basic information tab into a module.
In the module i use this code:
[cb:usertab tab="11" /]

and i have tried to enable the "Use CB template" and/or "Enable CB Javascript" options.
The result is the same:

At frontpage i get all the information in an unformatted row (not the format from the original tab).

Example:
IDGenderNameSurnameAgeGroup ....etc

Firstly, i thought that maybe there is a problem with the default tabs, then i created a delimiter field in which i loaded the information tab, then i put this field in a custom tab and loaded this new tab in the module, but i get the same result.

Also, i loaded this module in another module (widgetkit), but i got the same result. I disabled it in case there was a js conflict and still the same (Note: Other tabs, like Activity, show just fine)

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

  • Ntelos
  • Ntelos
  • OFFLINE
  • Posts: 95
  • Thanks: 4
  • Karma: 0
11 years 8 months ago #225306 by Ntelos
Replied by Ntelos on topic Formatting and cb content module
I know that i can use cb field like [name] etc like this:
Name: [name] but i was wondering if there was an easier way

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48622
  • Thanks: 8302
  • Karma: 1446
11 years 8 months ago #225311 by krileon
Replied by krileon on topic Formatting and cb content module
Please review the below substitution tutorial carefully.

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

Substitutions can have different outputs, reasons, and formatting applied to them to alter their display. By default the output is html and the formatting is none. So for example the below will DIV format a tab substitution.

[cb:usertab tab="11" formatting="div" /]

If you're using CB Bootstrap you need to surround the substitution with bootstrap templates CSS selector as it only styles it self to avoid styling outside of CB. Example as follows.

<div class="cb_template_bootstrap">[cb:usertab tab="11" formatting="div" /]</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.
The following user(s) said Thank You: Ntelos

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

Moderators: beatnantkrileon
Powered by Kunena Forum