While testing text represenation on one of the pages I have created for my site, where user has to provide content, I've noticed that if I use very long strings in the description field (where the context has to be typed in) are going way beyond the right hand border of the browser. I am using the following code in contemplate to format that page.

print theme('image', $node->field_workshop_image[0]['filepath']);
print $node->field_workshop_image[0]['data']['description']
print $node->content['body']['#value']

It shows image and description field on the same row of the table, width suppose to set the width of the table to 75% of the browser width, but it is not wrapping long text.

Comments

dmitry70’s picture

Sorry forgot code tag.

<table width: '75%'>
     <tr><th><?php print theme('image', $node->field_workshop_image[0]['filepath']); ?> 
          <b><?php print $node->field_workshop_image[0]['data']['description'] ?></b></th>
         <th><?php print $node->content['body']['#value'] ?></th></tr>
</table>