I have to crate a simple CMS using drupal, It has 4 pages and each page has unique design.
Share
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 take that the four pages you are talking of are nodes. A theme can have different templates for different content types.
In the same way done by
template_preprocess_node(), a module can implementhook_preprocess_node(), and suggest a different template file to use.If the custom module wants to be sure that the template it is suggesting is checked before other template files, then it can adopt the following code:
The theme must have a template file with the suggested name (
node-1.tpl.phpfor the node with ID 1, in example), or the default template file node.tpl.php will be used.