|Project:||Content Templates (Contemplate)|
I'm using contemplate with jstools tabs module. I'm trying to change the layout of fields inside each fieldgroup, so I thought it to be the solution I was looking for.
I'm trying to change (first) the way the Body view looks like. I found the post in http://groups.drupal.org/node/8359 to be very useful to get the following code for the template:
<div id="tabs-1" class="drupal-tabs">
<div id="tabs-tabset-1" class="fragment">
<h2 class="drupal-tabs-title">Tab 1</h2>
<?php print $node->content['field_somefield']?>
<div id="tabs-tabset-2" class="fragment">
<h2 class="drupal-tabs-title" >Tab 2</h2>
<?php print $node->content['field_someotherfield']?>
As can be seen, I'm trying to show the $node->content['field_XXX'] variables (which, as the 'body variables' link states, are available) but nothing is printed. But if I replace them with something like $node->field_XXX['view'], this value is shown.
Is this an issue? or am I doing something wrong?