kaz Posted February 9, 2023 Share Posted February 9, 2023 I have a website with a landing page. The layout of the content pages has $config->prependTemplateFile = 'views/partials/_prepend.php'; $config->appendTemplateFile = 'views/partials/_append.php'; The layout of the landing page template is completely different, with a different header and footer structure. Because it's only one template / one page, I don't need an entry in the config. I'm figuring out how to solve this? The entry in the config assigns the prepend and append file to all pages? It would be great if the template landing.php does not have a prepend and append file assigned to it. Is that feasible? Link to comment Share on other sites More sharing options...
zoeck Posted February 9, 2023 Share Posted February 9, 2023 <?php if($page->id == **YOURLANDINGPAGEID**) return; ?> Just Add this to the top of your _prepend.php and _append.php (and isert your id ?) Of course, this also works with a template check: <?php if($page->template == "**yourtemplatename**") return; ?> 1 Link to comment Share on other sites More sharing options...
kaz Posted February 9, 2023 Author Share Posted February 9, 2023 @zoeck A great and simple solution. Thanks! Link to comment Share on other sites More sharing options...
wbmnfktr Posted February 9, 2023 Share Posted February 9, 2023 Aren't your prepend/append files listed within the template settings (Files tab)? That would be the easiest way. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now