we created a customized template and modified also the default.php file in default template. So to retain changed on updates I wanted to place our modified defualt php in our created template folder but the system seems to be looking for default php in default template. So changes are only takeing effect when useing default template.
Is there a template override that works, do i do something wrong?
I believe you need to rename default.php to the name of your own template once it's copied over. You also need to add an entry to your XML file for it. Example as follows.
default.php renamed:
mytemplate.php
XML entry under files:
<filename plugin="mytemplate">mytemplate.php</filename>
After both above changes it should work fine.
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.
In order to test the template system i copied the default template and renamed the folders, files and xml entries. When I install the plugin everything is good but accessing any cb page results in blanc screen.
So it does seem to be takeing the new php file in the folder but handels it differently?
Renameing the new php file make the template work again (system takes defaul.php from default folder).
The PHP file has functions that include the template name and those must be changed as well. Please see the attached copy of the default template. This gives you a duplicate of the default template (PHP file included) that you can freely edit.
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.