Hi all. I need to render foo node's comments with my graphic so I have created
comment-foo.tpl.php. and it works.
Now i need to enclose comments in a div with class bar:
<div class="bar"> <h3>Commenti dagli utenti</h3> <?php print $content; ?> </div>
I have created comment-wrapper.tpl.php file but it does not work. So I have created comment-wrapper-foo.tpl.php but it does not work again.
Where is my error ?
M.
Hi Michael Judging by http://api.lullabot.com/template_preprocess_comment_wrapper it should work if foo is the type of your node (e.g. page etc). In which case, maybe it's your theme registry needs to be refreshed/flushed. If foo is not the node type then you'll need to implement hook_preprocess_comment_wrapper and add your own 'template_files' suggestions. Lee
-----Original Message----- From: themes-bounces@drupal.org [mailto:themes-bounces@drupal.org] On Behalf Of Michel Morelli Sent: Friday, 11 June 2010 7:45 PM To: support@drupal.org; A list for theme developers Subject: [themes] Comment-wrapper is not used in my theme
Hi all. I need to render foo node's comments with my graphic so I have created
comment-foo.tpl.php. and it works.
Now i need to enclose comments in a div with class bar:
<div class="bar"> <h3>Commenti dagli utenti</h3> <?php print $content; ?> </div>
I have created comment-wrapper.tpl.php file but it does not work. So I have created comment-wrapper-foo.tpl.php but it does not work again.
Where is my error ?
M.
Lee Rowlands ha scritto:
Hi Michael Judging by http://api.lullabot.com/template_preprocess_comment_wrapper it should work if foo is the type of your node (e.g. page etc).
yes foo is my node type. however I have found the problem: a stupid function created by Artisteer that wrap all comment. I hate this template made with Artisteer!!!! Why graphic worker need to use this type of program ????. GRRRRRRRRR.
M.