By curtisknoblauch on
Hi everyone,
I am using drupal 7.
Objective: To create a custom page template to be used for every part of the "advanced forum" setup.
Problem: I have created a page--forum.tpl.php template, which is being used for every part of the "advanced forum" except for the post itself.
I notice that the URL most likely has something to do with this as all the sections that are using the page--forum.tpl.php template are basically site.com/forum/*, however, the post itself is site.com/node/*
How would I make it so that the forum post, utilizes this page--forum.tpl.php file?
Thanks,
Curtis
Comments
.
Threads are not technically part of the forum, which is why that doesn't work. You need to put code in the preprocess to check if the page is a single node and if the node is a forum node and then add a template suggestion for your custom page.
Michelle
Thanks
Thanks Michelle,
I'll have to look into that, preprocess and hooks and all that are still very greek to me.