Format and line breaks in multi-line text

Events happening in the community are now at Drupal community events on www.drupal.org.
liliplanet's picture

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

Comments

please help

liliplanet's picture

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's picture

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

Marc

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

Thanks!

dmurphy's picture

That worked for me!

Profiles as nodes

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week