It is better to go with Drupal's default name-convention-based principles for naming template files, which do the same thing, as explained in the ref cited above (<meta http-equiv="content-type" content="text/html; charset=utf-8"><a href="http://drupal.org/node/190815">http://drupal.org/node/190815</a>).<div>
<br></div><div>However, there is nothing to stop you from implementing a block.tpl.php which has a conditional structure involving one or more includes.</div><div><br></div><div>Victor Kane</div><div><a href="http://awebfactory.com.ar">http://awebfactory.com.ar</a></div>
<div><a href="http://projectflowandtracker.com">http://projectflowandtracker.com</a><br><br><div class="gmail_quote">On Tue, Oct 5, 2010 at 1:14 PM, Richard Morse <span dir="ltr"><<a href="mailto:remorse@partners.org">remorse@partners.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Thanks. Is there any way to implement the second option I listed below -- that is, in the .tpl.php file, specify a different .tpl.php file to use instead?<br>
<br>
Thanks,<br>
Ricky<br>
<div><div></div><div class="h5"><br>
On Oct 5, 2010, at 11:34 AM, Robert Holmes wrote:<br>
<br>
> Check out <a href="http://drupal.org/node/190815" target="_blank">http://drupal.org/node/190815</a><br>
><br>
> Robbie<br>
><br>
><br>
> On Oct 5, 2010, at 11:12 AM, Richard Morse wrote:<br>
><br>
>> Hi! This may be the wrong forum to ask this question; if so, please let me know where I should be directing this question.<br>
>><br>
>> I am developing a theme, and would like to use the system provided 'block.tpl.php' file for most blocks. However, for menu blocks I would like to use a different .tpl.php file. I can modify the 'template_files' array in theme_preprocess_block() to include the file, and the devel_themer module then shows the file name added to the list of possible suggestions, but unless I have a file called 'block.tpl.php' in my theme directory, it ignores the file I want it to use. This is sub-optimal because if there are any security changes made to 'block.tpl.php' in future Drupal 6 versions, the changes will not propagate.<br>
>><br>
>> Is there any way to do one of the following?<br>
>><br>
>> 1. in 'theme_preprocess_block' specify the path to a .tpl.php file to be used, so that I don't need to have a file named 'block.tpl.php' in my theme directory<br>
>><br>
>> or<br>
>><br>
>> 2. in the 'block.tpl.php' file, somehow tell Drupal to use the one provided by the system instead?<br>
>><br>
>> Also, is there some place I should be looking for documentation on how to do this? I've been through much of the Theming manual on <a href="http://drupal.org" target="_blank">drupal.org</a> looking for this information already...<br>
>><br>
>> Thanks,<br>
>> Ricky<br>
>><br>
>><br>
>> The information in this e-mail is intended only for the person to whom it is<br>
>> addressed. If you believe this e-mail was sent to you in error and the e-mail<br>
>> contains patient information, please contact the Partners Compliance HelpLine at<br>
>> <a href="http://www.partners.org/complianceline" target="_blank">http://www.partners.org/complianceline</a> . If the e-mail was sent to you in error<br>
>> but does not contain patient information, please contact the sender and properly<br>
>> dispose of the e-mail.<br>
>><br>
><br>
<br>
</div></div></blockquote></div><br></div>