I am new'ish to CB, I have upto three lists, which at this time all look the same, I an wondering whether there is a simple method to define a template to each list view.
There is a css class defined as 'cb_template_default' which i have tested with templating the list. I would like to set a different template to each list view.
Whats the approach to defining the template from the one set in configuration => user profile => CB template. I cannot find in the database the desired table holding the template value so I can match in the code what template its requesting so I can force a redirect to a different template for list B or List C.
There's no CB template assignment feature. However, there is a global config variable that controls the template output so you maybe able to use the same trick that CB Template Changer uses using CB Auto Actions. Example as follows.
global $ueConfig;
$ueConfig['templatedir'] = 'bootstrap';
Note the above is just an example and I've no idea if it'll actually work as desired. For templatedir you need to supply the actually template value and not its name. You can find the template folder names at the below location.
components/com_comprofiler/plugin/templates/
Once the above usage is tested working you can go on to add conditionals to check against [get_listid] to load CB templates for specific userlists, but don't add conditionals until you know the usage is or is not working first.
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.