Skip to Content Skip to Menu

Mod CB Content Tab Display

  • 6DS
  • 6DS
  • OFFLINE
  • Posts: 10
  • Thanks: 4
  • Karma: 2
10 years 4 months ago #245981 by 6DS
Mod CB Content Tab Display was created by 6DS
Hello,

I am trying to display the "About" tab in the module, but the HTML output is only the field values all jammed together.

So, to fix this I have configured the module to display the fields instead; however the fields are only displaying the values for the logged-in user, rather than the fields for the displayed user. What is the correct code for this?

I am using with no result:
[cb:userfield field="cb_dob" user="#displayedOrMe"]

If i use just [cb_dob] the field displayed is the logged-in user, instead of the profile page being viewed.

I am putting this in module because the html of the tab is atrocious. If this is not possible to do in module, how can I instead fix HTML of the tab?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 4 months ago #245995 by krileon
Replied by krileon on topic Mod CB Content Tab Display
Substitutions always output with formatting set to "none" by default. This means the tab content isn't formatted at all. You can specify div format to match profile usage as follows.

[cb:usertab tab="17" user="#displayedOrMe" formatting="divs" /]

Please see the below substitution 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.
The following user(s) said Thank You: nant

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

  • 6DS
  • 6DS
  • OFFLINE
  • Posts: 10
  • Thanks: 4
  • Karma: 2
10 years 4 months ago #246046 by 6DS
Replied by 6DS on topic Mod CB Content Tab Display
Perfect, thank you!

I was looking for that article, I knew I'd seen it before.

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

  • 6DS
  • 6DS
  • OFFLINE
  • Posts: 10
  • Thanks: 4
  • Karma: 2
10 years 4 months ago #246047 by 6DS
Replied by 6DS on topic Mod CB Content Tab Display
One last question:

If I want to display the cb_dob field, how can I format it?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48478
  • Thanks: 8282
  • Karma: 1443
10 years 4 months ago #246070 by krileon
Replied by krileon on topic Mod CB Content Tab Display
Please read the tutorial below carefully. It explains in detail how to use the substitutions with examples included.

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.

Moderators: beatnantkrileon
Powered by Kunena Forum