Canvas Box in CB Content Module

6 years 1 week ago #303066 by MMDoege
Canvas Box in CB Content Module was created by MMDoege
To remain consistent with site layout am considering to have Canvas Box (Canvas, Avatar, OnlineStaus and Statistics) in a CB Content Module.
Have tried this code, but can't figure out why it does not render properly. And cog icon to update canvas photo with ajax is still missing to the right.

Code:
<div class="cbPosCanvas cbCanvasLayout border-default">

<div class="cbPosCanvasTop cbCanvasLayoutTop">

<div class="cbPosCanvasBackground cbCanvasLayoutBackground bg-muted">
[cb:userfield field="canvas" reason="list" /]
</div>
<div class="cbPosCanvasPhoto cbCanvasLayoutPhoto">
[cb:userfield field="avatar" reason="profile" /]
[cb:userfield field="onlinestatus" reason="profile" /]
</div>

</div>

<div class="cbPosCanvasBottom cbCanvasLayoutBottom border-default">

<div class="cbPosCanvasTitle cbCanvasLayoutTitle text-primary">
[cb:userfield field="name" reason="profile" /]
</div>
<div class="cbPosCanvasStats cbCanvasLayoutCounter text-muted small">
[cb:usertab tab="6" reason="profile" /]
</div>

</div>

</div>

Well, not an error but coding issue ... would appreciate some help here. Thank you.

tab 6 = statistics
Attachments:

Please Log in to join the conversation.

6 years 1 week ago #303071 by krileon
Replied by krileon on topic Canvas Box in CB Content Module
Honestly don't recommend putting too much time into it right now. I'm currently working on upgrading CB to Bootstrap 4 and all of that is going to change as we'll be able to just use mostly Bootstrap 4 classes instead of a bunch of custom CSS. If you still want to do this then the profile styling is not designed for use outside of profile and recommend looking at the Connections tab for appropriate structure for usage like that.


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 to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.236 seconds

Facebook Twitter LinkedIn