Forums / Setup & design / Can't get paragraph in XMLTextField
Claus Jensen
Thursday 23 October 2003 3:06:53 am
Hello, How do one get a paragraph in an XMLTextField? When I write an article and I want spacing between 2 paragraphs I would assume pressing enter 1 or 2 times, but this has no effect? What could be wrong here? Give a little hint if you know, thank you.
regards,claÜs
Thomas Schamm
Thursday 23 October 2003 5:53:11 am
Well, normally this works fine. Did you perhaps make changes in your /standard/templates/content/datatype/view/ezxmltags folder?There should be a paragraph.tpl and a br.tpl, these two should be like the original ones, they are used for making the line brakes around your xml fields and in it.
Greetings, Thomas
Friday 24 October 2003 1:30:13 am
Hi Thomas,I have looked at the files you suggested, but they are untouched. The lines of template code below is an example on a field that will not be parsed right. The description fields is the sinners, is this how you would write it to get the paragraphs?
{default with_children=true() is_editable=true() is_standalone=true()}
<span class="classhead">{$node.name}</span> <br> <span class="classlistitem">{$node.data_map.description.data_text} <br>{let children=fetch('content',list,hash(parent_node_id,$node.node_id))}
<table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> <td width="100%" height="10"> <table cellpadding="0" cellspacing="0" border="0"> {section name=Child loop=$children} <tr>
<td align="left"><span class="classlistitem">{$Child:item.data_map.description.data_text}</span> </td>
best regards,claÜs
Monday 27 October 2003 1:56:23 am
Hello again, I think I found the solution, but I dont know why its like this:In a template if I use the {attribute_view_gui attribute=$Child:item.data_map.description} way to write out variables, it shows the formatting. But when I use {$Child:item.data_map.description.data_text} way it dont show formatting. Why is this? Does anybody know?
cheers,claÜs