Page 1 of 1

Options/Template

Posted: Wed Jul 12, 2023 2:30 pm
by LRAM
Hi
for each content , in the options menu, there is a template, under parents
what is its purpose ?
I'm able to use a specific theme for this particular content ? that would be great. But I don't know how to make it work
thank you for your clarifications

Re: Options/Template

Posted: Fri Jul 14, 2023 9:46 am
by Edi
This feature is not implemented in Bludit.

Re: Options/Template

Posted: Fri Jul 14, 2023 2:54 pm
by LRAM
ok, thank for the answer Edi

Re: Options/Template

Posted: Sun Jul 16, 2023 11:19 am
by bayerberg
hmmm... it was implemented but you needed a theme that had templates included.

modify index.php

Code: Select all

if ($WHERE_AM_I == 'page') {
	if ($page->template()) {
		include(THEME_DIR_PHP.$page->template().'.php');
	} else {
		include(THEME_DIR_PHP.'page.php');
	}
}
and create template pages. dont forget to name them in a way you remember what is what :)

Re: Options/Template

Posted: Sun Jul 16, 2023 5:26 pm
by LRAM
thank you for your reply
Is it possible to call up another theme in this case? Let's say my main theme is Blog X and I want to display the Alternative theme for certain pages. Is this possible?

Re: Options/Template

Posted: Fri Jul 21, 2023 2:56 pm
by bayerberg
nope, all the css, js and images are pulled from current theme folder. you might be able to fetch php partials from other themes but it wont look good.

there might be a way to switch themes though. will need to investigate :)