[support] D7 Separate field templates for jquery tab content?
Jeff Greenberg
listmail.ayendesigns at gmail.com
Sun Mar 10 14:54:56 UTC 2013
Hi. I'm using jquery tabs on a content display. To test originally, I had
the html all in a template that reflects the first of 2 tabs:
<div id="tabs">
<ul>
<li>tab1</li>
<li>tab2</li>
</ul>
<div id="tab1">stuff</div>
<div id="tab2">stuff</div>
</div>
This worked fine. The contents were in:
field--field-tab1--my-content-type.tpl.php
I then split the contents of the second tab off into a template for the
second field. This field has the same field display settings in the content
type as the first field. The files now look like this:
field--field-tab1--my-content-type.tpl.php
<div id="tabs">
<ul>
<li>tab1</li>
<li>tab2</li>
</ul>
<div id="tab1">stuff</div>
field--field-tab2--my-content-type.tpl.php
<div id="tab2">stuff</div>
</div>
The second template is not picked up at all (tried using die() to be sure),
so I get the tabs, with only the first being operational with content.
--
---
drupal.org/user/367108
linkedin.com/in/jeffrgreenberg
accidentalcoder.com / ayendesigns.com
@accidentalcoder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/support/attachments/20130310/689c12f1/attachment.html
More information about the support
mailing list