Is there a way to theme a view so that the views templates do not need to be in the theme directory? The templates I'm creating ought to be used regardless of which theme is selected, and I don't want to have to put them into every theme directory.
Hi the first and only idea I have at the moment is to create an "empty" theme and set all the themes you use to be sub-themes of the empty theme, then add the template to the empty theme. That should work, but there should be an easier and smarter way to do it. Simone
On Mon, Mar 30, 2009 at 5:55 PM, Christopher M. Jones cjones@partialflow.com wrote:
Is there a way to theme a view so that the views templates do not need to be in the theme directory? The templates I'm creating ought to be used regardless of which theme is selected, and I don't want to have to put them into every theme directory. -- [ Drupal support list | http://lists.drupal.org/ ]
May be the contemplate module could help you.
Cheers, Pierre.
Le lundi 30 mars 2009 à 12:55 -0400, Christopher M. Jones a écrit :
Is there a way to theme a view so that the views templates do not need to be in the theme directory? The templates I'm creating ought to be used regardless of which theme is selected, and I don't want to have to put them into every theme directory. -- [ Drupal support list | http://lists.drupal.org/ ]
Pierre Rineau ha scritto:
May be the contemplate module could help you.
This idea is correct, but how about performance ?
contemplate is "another layer" before rendering (and PHP code that need to be read and validating and ...). Is more important that you do not copy some .tpl.php files or your site performance ?
M.
I don't know about performance, I think, if the module is smart enough, it should do caching somewhere.
Try, you'll see!
Le mardi 31 mars 2009 à 11:14 +0200, Davide Michel 'ZioBudda' Morelli a écrit :
Pierre Rineau ha scritto:
May be the contemplate module could help you.
This idea is correct, but how about performance ?
contemplate is "another layer" before rendering (and PHP code that need to be read and validating and ...). Is more important that you do not copy some .tpl.php files or your site performance ?
M.