Re: How to add a new template
Reply #1 –
So you are talking about files named something.template.php, correct?
In that case, unfortunately, at the moment ElkArte doesn't know how to load these files automatically, so if you want to use any you have to load the files manually.
I would suggest something like that:
loadTemplate('TemplateName');
it's not the best place, but considering your approach, the best place for that function would be inside template_init.
Though, @Spuds this may be something to consider for themes extensibility (i.e. allow theme to load their preferred templates.
Thinking out loud: it may lead to some inconsistencies, though it should be fine. The best way would be to "finish" the template call branch from Josh and then have an autoloader for the template classes as well.
Food for thoughts.