Skip to Content Skip to Menu

[#4837] CB 2.0 Templates?

10 years 3 weeks ago - 10 years 2 days ago #250780 by zingerdigital
[#4837] CB 2.0 Templates? was created by zingerdigital
After upgrading to CB 2.0, I've noticed that theres only one template, "Default"

How does the template system work in relation to the new Canvas Layouts? How can I create my own template so things wont get overridden with updates???
Last edit: 10 years 2 days ago by krileon.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 3 weeks ago #250790 by krileon
Replied by krileon on topic CB 2.0 Templates?

After upgrading to CB 2.0, I've noticed that theres only one template, "Default"

Correct, the plan is to develop a plugin that allows easy generation of new templates in any color scheme you'd like from our custom LESS files, but I've no idea when I'll get around to that as I'm not making any plans until current plugins are upgraded.

How does the template system work in relation to the new Canvas Layouts?

Template system has nothing to do with that, but the PHP file of the template does, which contains preparing the HTML for the canvas positions.

How can I create my own template so things wont get overridden with updates???

Same way templates have always been created for 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.

10 years 3 weeks ago - 10 years 3 weeks ago #250823 by zingerdigital
Replied by zingerdigital on topic CB 2.0 Templates?
The old templates are still in "components\com_comprofiler\plugin\templates" (bootstrap, dark, luna, etc...) Should they be deleted, or leave them there?


Are the files in the new 2.0 default template directory new? If I want to create my own template, should I copy that directory?


With the files in the directory "components\com_comprofiler\plugin\language\default_language"...Are these the only files being used for CB 2.0...
admin_language.php, default_language.xml, language.php? So I would only need to copy these to make my own Language Template?


Can you do module and component overrides in Joomla's Template Manager with the CB 2.0 files?
Last edit: 10 years 3 weeks ago by zingerdigital.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #250998 by krileon
Replied by krileon on topic CB 2.0 Templates?

The old templates are still in "components\com_comprofiler\plugin\templates" (bootstrap, dark, luna, etc...) Should they be deleted, or leave them there?

They should have uninstalled when you installed CB 2.0. Otherwise yes you can delete them.

Are the files in the new 2.0 default template directory new? If I want to create my own template, should I copy that directory?

Yes, the default template is 100% installable. So you can copy it, rename it, adjust its PHP file as well as XML file and you should have a new installable template. Note the template element (e.g. "default") is included in the PHP files class names so you'll need to adjust the PHP file.

With the files in the directory "components\com_comprofiler\plugin\language\default_language"...Are these the only files being used for CB 2.0...
admin_language.php, default_language.xml, language.php? So I would only need to copy these to make my own Language Template?

Yes those are the only 3 files needed for a language plugin. If you copy its folder, rename it, and adjust the XML file it'll be installable.

Can you do module and component overrides in Joomla's Template Manager with the CB 2.0 files?

For now you can only do template overrides for our Modules. We'll probably have component template override available in CB 2.1 or in a later release.


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.

10 years 2 weeks ago - 10 years 2 weeks ago #251007 by zingerdigital
Replied by zingerdigital on topic CB 2.0 Templates?
Thanks for the previous answers!

The new positions that are available for the canvas layout... Can they be adjusted, or are we limited to the positions that are supplied and just be able to change the CSS styling for the look.

For example the "Canvas Main Left" column is about 15% width, "Canvas Main Middle" column is about 70% width, and "Canvas Main Right" is about 15% width. So wondering if the widths can be adjusted.

Robert
Last edit: 10 years 2 weeks ago by zingerdigital.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48482
  • Thanks: 8283
  • Karma: 1443
10 years 2 weeks ago #251030 by krileon
Replied by krileon on topic CB 2.0 Templates?

The new positions that are available for the canvas layout... Can they be adjusted, or are we limited to the positions that are supplied and just be able to change the CSS styling for the look.

No, the canvas positions are not adjustable. They need very strict CSS and coding for it to be as flexible and responsive as it is.

For example the "Canvas Main Left" column is about 15% width, "Canvas Main Middle" column is about 70% width, and "Canvas Main Right" is about 15% width. So wondering if the widths can be adjusted.

Not without altering the PHP of the template and also the jQuery in the templates PHP file to handle the column size swapping.


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