default.php template file always needed?

11 years 11 months ago #202792 by socialfan
default.php template file always needed? was created by socialfan
Hello,

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?

thank you

Please Log in to join the conversation.

11 years 11 months ago #202802 by krileon
Replied by krileon on topic Re: default.php template file always needed?
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.

Please Log in to join the conversation.

11 years 11 months ago #202886 by socialfan
Replied by socialfan on topic Re: default.php template file always needed?
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).

I dont think this is supposed to be like that?

Thanks for support.

Please Log in to join the conversation.

11 years 11 months ago #202912 by krileon
Replied by krileon on topic Re: default.php template file always needed?
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.
Attachments:
The following user(s) said Thank You: socialfan

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.274 seconds

Facebook Twitter LinkedIn