Format and line breaks in multi-line text

Liliplanet's picture
public
Liliplanet - Fri, 2008-05-23 10:01

Hi!

I can imagine this is pretty easy, but have done an extensive search and :) cannot find a solution please ..

Inserting a multi-line text in node-profile.tpl.php with field_introduction and field_detailed_profile just prints as text without line breaks or automatic links.

<br><div><center><b><h2><?php print $node->field_introduction[0]['value'] ?></h2></b></center></div>
<br><div><?php print $node->field_detailed_profile[0]['value'] ?></div>

Please how can I have the text format correctly with automatic links?

Would most appreciate any help and thank you.
Lilian


please help

Liliplanet's picture
Liliplanet - Tue, 2008-05-27 15:04

Hi,

Been checking every day just in case someone has an answer for me please truly cannot find the solution on the forums.

I would like to include a field on my node-proflle.tpl.php, but it is a text area for the user. When I include:

<br><div><center><b><h2><?php print $node->field_introduction[0]['value'] ?></h2></b></center></div>
<br><div><?php print $node->field_detailed_profile[0]['value'] ?></div>

it just prints out as straight text without line breaks or any formatting for weblinks, email addresses, etc.

Please how do I format the above so that it prints in the node-profile template as it was inserted?

Would most appreciate any reply.

Lilian


Try 'view' instead of 'value'

marcp@drupal.org - Wed, 2008-05-28 21:29

Try replacing 'value' with 'view' and see if that fixes it for you.

Marc

http://www.funnymonkey.com
Tools for Teachers