Hi i m working on content template module in drupal,but there is problem in showing view of ranking field with below coding
<td width="10%" align="left"><font color="#669900"><b>Address:</b></font></td>
<td colspan="3"><?php print $node->field_perm_add_line1[0]['view'] ?>,<?php print $node->field_perm_add_line2[0]['view'] ?></td>
<td align="left"><font color="#669900"><b>Website:</b></font></td>
<td align="left"><?php print $node->field_website[0]['view'] ?></td>
<td width="8%" align="left"><font color="#669900"><b>Phone:</b></font></td>
<td width="42%" align="left"><?php print $node->field_phone1[0]['view'] ?><?php echo ","; print $node->field_phone2[0]['view'] ?></td>
<td align="left"><font color="#669900"><b>Email:</b></font></td>
<td align="left"><?php print $node->field_alt_email[0]['view'] ?></td>
<td align="left"><font color="#669900"><b>Fax:</b></font></td>
<td align="left"><?php print $node->field_fax[0]['view'] ?></td>
<td align="left"><font color="#669900"><b>Rankings:</b></font></td>
<td colspan="3"><?php print $node->field_university_rankings[0]['view'] ?></td>
<td align="left" colspan="4"><font color="#669900"><b>Description:</b></font></td>
<td style="background-color:#fff; align="left" colspan="4"><?php print $node->field_description[0]['view'] ?></td>
but for the ranking field i have designed a view which has argument title so i can’t get it how to add it please help……….
Thanks in advance Pranoti
You could start with a
To find out how this is structured. I doubt that your code,
is correct. Since Drupal would hardly use the stripped version of a title as key in an array.
Once var_dump() tells you the exact key of that array, use that.
I assume you will find that you will see something like
The exact output of ‘view’ is created with display settings that go with the field. You should try to configure it in such a way, that the ‘view’ already outputs the correct string.