<div dir="ltr">As far as I understand if yo uwant to override templates by content type you must have a template file for each type.<div><br></div><div>In panels you can create a custom page and then create a page template file for the url of your custom page. This takes care of the PAGE display. Then, to get your individual nodes to display in this page, use a url pattern that sets the default page for all the content types you want displayed through this page as the first argument: <a href="http://myhomepage.org/page-name/this-node">myhomepage.org/page-name/this-node</a> --- with page-name being the custom page.</div>
<div><br></div><div>If you want the content types to be displayed differently you can still create node template variants for them. As long as the url string begins with the page name each of teh node variants will be rendered through the custom page.</div>
<div><br></div><div>good luck!</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Sep 30, 2013 at 12:12 PM, Chris Miller <span dir="ltr"><<a href="mailto:cjm@tryx.org" target="_blank">cjm@tryx.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif"><blockquote style="padding-left:5px;font-size:12pt;font-style:normal;margin-left:5px;font-family:Helvetica,Arial,sans-serif;text-decoration:none;font-weight:normal;border-left:2px solid #1010ff">
<b>From: </b>"LINDA ROMEY" <<a href="mailto:lromey@gmail.com" target="_blank">lromey@gmail.com</a>><br><b>To: </b><a href="mailto:support@drupal.org" target="_blank">support@drupal.org</a><br><b>Sent: </b>Friday, September 27, 2013 3:52:05 PM<br>
<b>Subject: </b>Re: [support] Node Template Variant<br><div><br></div>Chris, just as you put all contrib modules in sites/all/modules, you should have your themes in sites/all/themes<div>so you'd have sites/all/themes/yourtheme</div>
<div>and in yourtheme you'd have a direcotry called templates. Most themes have one, if not, create one. Any template you create or any template you alter (i.e. a template supplied by a module) should go in that folder. Then you don't have to worry about overriding with upgrades</div>
</blockquote><div><br>Hi Linda,<br></div><div><br></div><div>So, I am using the Bartik theme, for now, and I seek special formatting for a content-type called "Music". If I understand your instructions, then I should copy and subsequently modify:</div>
<ul><li>/themes/bartik/templates/node.tpl.php ==> /sites/all/themes/bartik/templates/node--music.tpl.php</li><li>/themes/bartik/templates/page.tpl.php ==> /sites/all/themes/bartik/templates/page--node--music.tpl.php</li>
</ul><div>So far, so good?<br></div><div><br></div><div>Now my next question. Let's assume that this is going to happen more frequently than just this one content-type. Is there a way to make the template general and applicable to arbitrary content, like assign it to a panel, and then I can put whatever content I need on that panel? I don't know if I will need this template again, but my preference is to create a re-usable template, not a special kind of content-type. Can that be done?<br>
</div><div><br></div><div>Thanks for the help,<br></div><div><br></div><div>Chris.<br></div></div></div><br>--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br></blockquote></div><br></div>