A la majoria de Themes de Drupal ja ve tot ben fet al template.php, pero al Theme Omega (que te altres molt bones coses) no hi havia manera de que rutlles.
Despres de mirar i remirar molt he trobat aquest senzill i genial truc:
Hi,
Copy all the code from your page.tpl.php, create a new file called page-default.tpl.php and paste the code in there.
Now delete all the code from your page.tpl.php and add the following:
<?php// Loads the front page templateif ($is_front) {
include 'page-front.tpl.php';
return; }
//Adding custom template based on content typesif ($node->type=='story') {
include 'page-story.tpl.php';
return; }
//if none of the above applies, load the page-default.tpl.php include 'page-default.tpl.php';
return;?>
That should work.
El node original a: http://drupal.org/node/296111
Cap comentari:
Publica un comentari a l'entrada