handsonwebhosting Posted March 17, 2009 Share Posted March 17, 2009 Anyone know how to display a custom filed with line breaks? We have the custom field already displaying, which is fine, however we have line breaks that SHOULD be showing up that don't. Can't use <BR> or /n's as they just display in the field also. Anyone have any thoughts. I was using {$customfield.value} for the display. Tried using {$customfield.input} but well it's not wide enough, or long enough for the text. 1 Quote Link to comment Share on other sites More sharing options...
snelweg Posted March 19, 2009 Share Posted March 19, 2009 sounds like a job for smarty. are the Line breaks in the fieldvalue? http://smarty.net/manual/en/language.modifier.nl2br.php There is some more magic you can do, See also word_wrap, count_paragraphs and count_sentences. 0 Quote Link to comment Share on other sites More sharing options...
handsonwebhosting Posted March 20, 2009 Author Share Posted March 20, 2009 Tried the /n's, but that didn't work. I did however find a solution I can use the <pre> </pre> tags around the specific field, and then they're not formatted, and it will pull direct from the database with the linebreaks already intact. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.