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.
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.
Did you try clearing your cache?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
Yes, through Performance, since often Drush doesn't quite clear all. No change.
On Mar 10, 2013, at 11:44 AM, Anoop John anoop.john@zyxware.com wrote:
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.
Did you try clearing your cache?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |-- -- [ Drupal support list | http://lists.drupal.org/ ]
Yes, through Performance, since often Drush doesn't quite clear all. No change.
I don't see why it wouldn't work assuming that your field names are field-tab1 and field-tab2. Did you check file permissions and ownership of the template files? They should be readable by the webserver.
If that doesn't work you can try poking around in the theme function with some debug code to see what is happening.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
Me either. The owner of all of the templates is www-data:www-data, which is Apache on Ubuntu, and the permissions are 644.
If the field name in the product display content type is field_tab_1, the template name is field--field-tab-1--product-display.tpl.php
On Sun, Mar 10, 2013 at 1:57 PM, Anoop John anoop.john@zyxware.com wrote:
Yes, through Performance, since often Drush doesn't quite clear all. No
change.
I don't see why it wouldn't work assuming that your field names are field-tab1 and field-tab2. Did you check file permissions and ownership of the template files? They should be readable by the webserver.
If that doesn't work you can try poking around in the theme function with some debug code to see what is happening.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |-- -- [ Drupal support list | http://lists.drupal.org/ ]