Hello,
I've created a new content type, let's call it mycontenttype. I have to add more information in this mycontenttype when it is displayed, like user name, user contry, etc. (not part of the input fields inserted when a new mycontenttype is created, but retrieved from the logged user in this example).
I've reached this goal by simply add the needed information in a file call node-mycontenttype.tpl.php in the CONTRIB theme folder. It WORKS BUT I guess this is bad design, since my CUSTOM theme derives from the CONTRIB theme, it means that if the CONTRIB theme is upgraded...
I already have a lot of customization file in this CUSTOM folder (page.tpl.php, custom.info, custom.css, template.php, webform-confirmation-49.tpl.php...), as advised in best practice guides. This is working fine, so I guess there is no issue on config part.
Does anyone knows why it doesn't work if I put this node-mycontenttype.tpl.php file in my CUSTOM theme folder?
Comments
You just have to have generic
You just have to have generic node.tpl.php in your custom folder as well to make node-nodetype.tpl.php work.
Hope it helps.
Cheers,
Andrey
Drupal Sites Showcase. Add yours! | My Blog
That works, thanks
That works, thanks Andrey.
(Even better: symbolic link to CONTRIB node.tpl.php inside CUSTOM folder)
Cheers.