How to display a multiline text box (or simple editor) on separate lines?
My apologies if this has been answered before but a search didn't reveal anything.
I have added a property to the site tab of a runway home page for the Company address. I have used both a multiline text box and a simple editor and get the same result.
On the home page site tab I enter the following into the box:
I keep getting robot e-mails asking me if the problem is solved. As I cannot mark it as solved unless someone else posts perhaps some one would post and I'll use it to mark 'solved'!!
There's an option in the umbraco:Item tag to convert line breaks to BR's. When inserting the item it's a checkbox towards the bottom, or just add this attribute:
How to display a multiline text box (or simple editor) on separate lines?
My apologies if this has been answered before but a search didn't reveal anything.
I have added a property to the site tab of a runway home page for the Company address. I have used both a multiline text box and a simple editor and get the same result.
On the home page site tab I enter the following into the box:
Peachy House
Road Name
Town
County
Post Code
I then use
<umbraco:Item runat="server" field="companyAddress" recursive="true" /><br>
to display the address on a contact page (I have configured the contact page as two columns with Co info on the left and a contact form on the right)
What I get displayed is:
Peachy House Road Name Town County
Post Code
How do I force each line of the field to appear as a separate line on the diaplayed page please?
OK OK -- stupid boy!!
Add <br> to the end of each line!
I just didn't expect that an end user would be expected to add html?
Is there no way of seting a <br> as the default if a user types CR??
I keep getting robot e-mails asking me if the problem is solved. As I cannot mark it as solved unless someone else posts perhaps some one would post and I'll use it to mark 'solved'!!
Hi Geoff,
There's an option in the umbraco:Item tag to convert line breaks to BR's. When inserting the item it's a checkbox towards the bottom, or just add this attribute:
Thanks,
Tom
Thanks Tom - problem solved and marked as such!!
is working on a reply...