Different template files
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
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
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
https://docs.bludit.com/en/themes/examp ... where-am-i
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