I created a page–front.tpl.php successfully.
Is there a similar way to create an instance of node.tpl.php that only gets called by the front page?
That would leave the main node.tpl.php untouched to be used in the rest of the site and content.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I believe you are looking for something like the below. This uses the template_preprocess_node function, and this code belongs in your active theme’s template.php file:
and then create your template file named node–front.tpl.php, empty your site cache, and now you should have a template file for nodes specifically displayed on the front page, while your original node.tpl.php will be used everywhere else.