By mertskeli on
Failed to find it in the docs.
Does D7 have page template suggestion functioning per content type? Or it requires a custom function?
Anyway, how can it be done?
Thanks.
Failed to find it in the docs.
Does D7 have page template suggestion functioning per content type? Or it requires a custom function?
Anyway, how can it be done?
Thanks.
Comments
This here will trigger page
This here will trigger page templates per content type like page-mycontentype.tpl.php in D6
In template.php:
--------------------------------------------
Konordo Ltd
http://www.konordo.com
Wrong file name
Sorry, but You have to name Your file page-node-mycontenttype.tpl.php!!!
Thank you.Unfortunately it
Thank you.
Unfortunately it won't work in D7 - theme suggestions were changed a lot.
This might help
This might help: http://drupal.org/node/917548
Thank you. Will try it.
Thank you. Will try it.
Yes, it works.
Yes, it works.
Great lead
Thanks for the link. It was exactly what I needed.
Nora McDougall-Collins
http://facebook.com/MontanaWebmasterTeam
Slight variation worked for me
The example above didnt work for me, using $vars seemed to not work, replace it with $variables and it will work
The example above didnt work
With respect, It doesn't make any sense, you can use any variable name here either its $variables or $vars. Important thing is, most of time people forget to clear cache that required to reflect changes. I would suggest you check this with $vars as well and clear cache, it would definitely work.
Pushpinder Rana #pushpinderdrupal
Acquia Certified Drupal Expert
check out this
https://www.drupal.org/node/1124036#comment-9898919