Different template files

Post Reply
Carstenap
Jr. Bludit
Posts: 4
Joined: Fri Dec 27, 2019 5:38 pm

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
hxii
Ssr. Bludit
Posts: 20
Joined: Sun Nov 22, 2015 11:01 am
Contact:

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
Learn by doing.

web
Carstenap
Jr. Bludit
Posts: 4
Joined: Fri Dec 27, 2019 5:38 pm

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
User avatar
Jay
Master Bludit
Posts: 133
Joined: Mon Feb 11, 2019 8:41 pm

Check this thread
viewtopic.php?f=14&t=1522
Post Reply