Share » Forums » Setup & design » Can't get paragraph in XMLTextField

Can't get paragraph in XMLTextField

Can't get paragraph in XMLTextField

Thursday 23 October 2003 3:06:53 am - 3 replies

Author Message

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

Claus Jensen

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

Claus Jensen

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

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu