Hi all. I need to theme the forward module content. The module can be themed but only via page-forward.tpl.php, but I don't want to duplicate the page.tpl.php file. I want (if possibile) that Drupal use "my-theme_file.tpl.php" for this content. There is way to theme a not node content ?
M.
On Tue, May 5, 2009 at 5:10 PM, Davide Michel 'ZioBudda' Morelli michel@ziobudda.net wrote:
Hi all. I need to theme the forward module content. The module can be themed but only via page-forward.tpl.php, but I don't want to duplicate the page.tpl.php file. I want (if possibile) that Drupal use "my-theme_file.tpl.php" for this content. There is way to theme a not node content ?
M.
You can't choose arbitrary names for templates. I've never used the forward module, so I can't offer any specific advice on it. You might want to try the Devel module. The theme developer module it includes will give you some hints on each part of your page that can be themed, what provides the current theme, and candidate names for overriding theme files and theme functions in template.php.
Justin Gruenberg ha scritto:
You can't choose arbitrary names for templates. I've never used the forward module, so I can't offer any specific advice on it. You might want to try the Devel module. The theme developer module it includes will give you some hints on each part of your page that can be themed, what provides the current theme, and candidate names for overriding theme files and theme functions in template.php.
I'm using it (great module and submodules). But Theme developer module say me that the only file that I can modify is "page-forward.tpl.php". I want to use page.tpl.php file for the "container" and theming the content that arrive from forward module.
M.
PS: sorry for bad english.
You have to check if there is a tpl.php file in modules/forward, if so copy, put in your theme folder and change there. If not open forward.module and search for theme_... Functions. Copy the ones you want to change into template.php and replace theme by phptemplate.
This is actually the basics of Drupal theming, its nicely described in the d6 theming handbook.
Hans
2009/5/6, Michel Morelli michel@ziobuddalabs.it:
Justin Gruenberg ha scritto:
You can't choose arbitrary names for templates. I've never used the forward module, so I can't offer any specific advice on it. You might want to try the Devel module. The theme developer module it includes will give you some hints on each part of your page that can be themed, what provides the current theme, and candidate names for overriding theme files and theme functions in template.php.
I'm using it (great module and submodules). But Theme developer module say me that the only file that I can modify is "page-forward.tpl.php". I want to use page.tpl.php file for the "container" and theming the content that arrive from forward module.
M.
PS: sorry for bad english.
-- Michel 'ZioBudda' Morelli michel@ziobuddalabs.net Consulenza sistemistica in ambito OpenSource. Sviluppo applicazioni 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-- [ Drupal support list | http://lists.drupal.org/ ]