Format and line breaks in multi-line text
public
group: Profiles as nodes
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
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'
Try replacing 'value' with 'view' and see if that fixes it for you.
Marc
http://www.funnymonkey.com
Tools for Teachers