![Image](http://kult.pp.ua/bl-themes/resto/img/template.jpg)
Do I need to write something else in the index.php?
Code: Select all
if ($WHERE_AM_I == 'page') {
if ($page->slug() == 'contact') {
include(THEME_DIR_PHP.'contact.php');
} else {
include(THEME_DIR_PHP.'page.php');
}
} else {
include(THEME_DIR_PHP.'home.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');
}
} else {
include(THEME_DIR_PHP.'blog.php');
}
Static content cannot have child pages.ehandelsforeningen wrote: ↑Sun Sep 08, 2019 3:33 pm How do we assign a menu structure to the static content (pages)? Using the pro version, I cannot assign another static parent to the content after choosing static as the format.