Answer the question
In order to leave comments, you need to log in
How to define your page layout in required nid in Drupal 7?
It is necessary for a contact page that has its own nid to define a unique template. How to do it?
I wrote this in template.php in the [THEMENAME]_preprocess_page function:
if (isset($vars['node']) && isset($vars['node']->nid)) {
$vars['theme_hook_suggestions'][] = 'page__nid--' . $vars['node']->nid;
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question