Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By sodani on
I am new to drupal, and am creating my own template by adapting an existing one. Lets say that the xtemplate.xtmpl file has a 'comments' item tag, which I do not want on my site, or may want to appear only on certain pages. How do I do this?
I have tried taking the item tag out, but then I get errors that cite the xtemplate engine. Thanks in advance!
Comments
You may have to use custom
You may have to use custom page.tpl.php files. Take a look at this handbook section. It is for phptemplate, but you will get the idea. And, I remember seeing comments there about extending the ideas to xtemplate and smarty engines.
Great, thank you.
Great, thank you. It seems like the php templates are the way to go anyway.