Page 1 of 1

Different template files

Posted: Fri Dec 27, 2019 5:49 pm
by Carstenap
Hi Guys,
A question.
I created a new file in the PHP folder called "newpage.php" (could have been links.php or something else).
How can I select this as a template file for my actual static page called "testimonials"?

Is there a way to select this in an easy way?

In backend I see the field "template" under options, but it does not seem to do anything.

Do I have to put in some php variable or anything in my "newpage.php" so that Bludit will know it is a template file?

//Carsten

Re: Different template files

Posted: Sat Dec 28, 2019 3:57 pm
by hxii
Templates are not working yet AFAIK, but you could check the slug of the page you are currently on and then include the required template, same as you do here:
https://docs.bludit.com/en/themes/examp ... where-am-i

Re: Different template files

Posted: Sun Dec 29, 2019 1:39 pm
by Carstenap
hxii wrote: Sat Dec 28, 2019 3:57 pm Templates are not working yet AFAIK, but you could check the slug of the page you are currently on and then include the required template, same as you do here:
https://docs.bludit.com/en/themes/examp ... where-am-i

Thank you hxii.
Have been looking at SLUGS, but was hoping that the Template field had come into play, as I found posts from earlier where it said that it came around version 3.9.x

//Carsten

Re: Different template files

Posted: Mon Dec 30, 2019 12:52 am
by Jay
Check this thread
viewtopic.php?f=14&t=1522