Options/Template

Post Reply
User avatar
LRAM
Legend Bludit
Posts: 200
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 25 times
Been thanked: 2 times
Contact:

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
https://sucrepop.com
Candies for the ears
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

This feature is not implemented in Bludit.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
LRAM
Legend Bludit
Posts: 200
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 25 times
Been thanked: 2 times
Contact:

ok, thank for the answer Edi
https://sucrepop.com
Candies for the ears
User avatar
bayerberg
Master Bludit
Posts: 141
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 10 times
Contact:

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 :)
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
User avatar
LRAM
Legend Bludit
Posts: 200
Joined: Sat Sep 24, 2016 4:02 pm
Location: France
Has thanked: 25 times
Been thanked: 2 times
Contact:

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?
https://sucrepop.com
Candies for the ears
User avatar
bayerberg
Master Bludit
Posts: 141
Joined: Wed Jun 07, 2017 1:05 pm
Location: London, UK
Has thanked: 10 times
Been thanked: 10 times
Contact:

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 :)
bludit plugins and themes - makeitblu | I do things, check them out on behance and dribbble.
Post Reply