Options/Template
- LRAM
- Legend Bludit
- Posts: 201
- 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
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
Candies for the ears
- bayerberg
- Master Bludit
- Posts: 143
- Joined: Wed Jun 07, 2017 1:05 pm
- Location: London, UK
- Has thanked: 10 times
- Been thanked: 11 times
- Contact:
hmmm... it was implemented but you needed a theme that had templates included.
modify index.php
and create template pages. dont forget to name them in a way you remember what is what
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');
}
}
- LRAM
- Legend Bludit
- Posts: 201
- 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?
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
Candies for the ears
- bayerberg
- Master Bludit
- Posts: 143
- Joined: Wed Jun 07, 2017 1:05 pm
- Location: London, UK
- Has thanked: 10 times
- Been thanked: 11 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
there might be a way to switch themes though. will need to investigate