Skip to Content Skip to Menu

CB2 templating

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
10 years 1 month ago #252830 by Pere LK
CB2 templating was created by Pere LK
Hi,
I have to make some hardword on your bootstrap templating for having search filter in a "inline-block" style.

I have see the comprofiler/plugins/default.php file but if I remember right in some announcment you have talk about some new templating possibilities : how this work ?


Thanks for your help

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252868 by krileon
Replied by krileon on topic CB2 templating
Not sure if the feature is in latest nightly or not, but we just added support for override.css for CB templates. Basically your CB template would be 3 files: index.html, override.css, TEMPLATE_NAME.xml. You'd select your template from backend and it'll inherit everything from the default template and will then load your override.css last so you can do some simple styling overrides.

Aside from that no, we've not improved templating any further for frontend yet. Eventually we'll have frontend XML template capabilities, but for now it's more or less the same.


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.

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
10 years 1 month ago #252882 by Pere LK
Replied by Pere LK on topic CB2 templating
So no way to change the div syle of each filter option ? Still no real MVC Joomla override system in this CB 2.0... I'm very disapinted by this.

What is the best way to get our own userlist, userdetail template ? If I remember right we had to copy a template folder and rename some class in ?

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252900 by krileon
Replied by krileon on topic CB2 templating

So no way to change the div syle of each filter option ?

The entire userlist has classes and IDs. You can style it however you like. You just can't move the HTML elements in the DOM without modifying the PHP file for your CB template.

Still no real MVC Joomla override system in this CB 2.0... I'm very disapinted by this.

It's planned once we've XML frontends. It was release now without or keep delaying. We had to "draw a line in the sand" and get CB 2.0 out. Currently only our modules support Joomla layouts.

What is the best way to get our own userlist, userdetail template ? If I remember right we had to copy a template folder and rename some class in ?

Depends on what you're wanting to do. If you provide more details on how you're wanting to style it then maybe I can suggest an alternative to modifying the code. In most cases you can get what you're wanting purely with CSS.


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.

  • Pere LK
  • Pere LK
  • OFFLINE
  • Posts: 114
  • Thanks: 2
  • Karma: 1
10 years 1 month ago #252910 by Pere LK
Replied by Pere LK on topic CB2 templating
Hi,
I have quite successfully to override the different clearfix. I need for example to add some icons (Yeah I will try with :before content and some fontawesome).
I'm waiting for my graphic colleague's PSD template and I want to be sure I can code what she create.
I my previous website I add to code all the HTML for adding schema.org for example (but we could not add css at this time and no html custom output) and I like to code my own template/HTML and for schema.org for example I need to add some information to the div wrapper not only the fields (and without using js for add these information or maybe it's sthe best way for now ? )

Thanks for reading

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48671
  • Thanks: 8312
  • Karma: 1446
10 years 1 month ago #252957 by krileon
Replied by krileon on topic CB2 templating
Well if you need to alter the DOM like adding attributes to elements you'll need to modify the PHP file for your CB template or use CB Auto Actions and act on the userlist display trigger with a Code action then use the jQuery mode to modify the DOM with JS.


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