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. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
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. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it _______________________________________________ themes mailing list themes@drupal.org http://lists.drupal.org/mailman/listinfo/themes Internal Virus Database is out of date. Checked by AVG - www.avg.com Version: 8.5.406 / Virus Database: 271.1.1/2686 - Release Date: 02/13/10 19:35:00
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. -- Michel 'ZioBudda' Morelli michel@ziobuddalabs.it Sviluppo applicazioni CMS DRUPAL e web dinamiche (LAMP+Ajax) Telefono: 0200619074 Telefono Cell: +39-3939890025 -- Fax: +39-0291390660 http://www.ziobudda.net ICQ: 58351764 http://www.ziobuddalabs.it Skype: zio_budda http://www.ziodrupal.net MSN: michel@ziobuddalabs.it JABBER: michel@ziobuddalabs.it
participants (2)
-
Lee Rowlands -
Michel Morelli