[themes] Overriding zone etc. templates for specific content types in D7
Jeff Greenberg
jeff at ayendesigns.com
Sun Mar 3 14:47:20 UTC 2013
Yes, Omega. A zone is like a superset of a region. So what I want to do is have a template that controls a zone for only a specific content type. I suspect I'll need to peruse the Omega template.php file
--
In the top 10% viewed LinkedIn profiles for 2012
--
404-271-9734
Sent from my iPhone. Any typos are the result of my oversized fingers or Siri not being able to comprehend my dialect.
On Mar 3, 2013, at 12:32 AM, Info Razor <inforazor at gmail.com> wrote:
> Hi Jeff,
>
> Not sure what you mean by "zone template" (referring to Omega theme maybe?) but if all you want to do is to make a template for a Node, the format is:
>
> node-{NAME}.tpl.php
>
> where {NAME} is the *machine* name for your content type.
>
> You can also find out the template suggested names by using the module devel_themer, and then clicking on the content type you are interested in. It will suggest functions in template.php and/or template names you can use, based on what you select.
>
> make sure to turn off devel_themer after you need it though cause it does mess up other regular stuff (its a bit of a hog-bug)
>
> there are other techniques to engineer the template names, but this should get you started.
>
> Good luck!
>
> rgds,
>
> datarazor
>
> --
> Info Razor
> Sent with Sparrow
>
> On Saturday, March 2, 2013 at 9:20 PM, Jeff Greenberg wrote:
>
>> Is there a template hint for overriding a zone template for a specific content type, such as a content zone template for product display, or do I need to create one in template.php?
>>
>> --
>> ---
>> drupal.org/user/367108
>> linkedin.com/in/jeffrgreenberg
>> accidentalcoder.com / ayendesigns.com
>> @accidentalcoder
>> _______________________________________________
>> themes mailing list
>> themes at drupal.org
>> http://lists.drupal.org/mailman/listinfo/themes
>
> _______________________________________________
> themes mailing list
> themes at drupal.org
> http://lists.drupal.org/mailman/listinfo/themes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/themes/attachments/20130303/7a0a1e4e/attachment.html
More information about the themes
mailing list