Fórumok

Problem with Structures in 6.0.4

thumbnail
prakash harigopal, módosítva 13 év-val korábban

Problem with Structures in 6.0.4

Regular Member Bejegyzések: 101 Csatlakozás dátuma: 2010.06.23. Legújabb bejegyzések
Hi,

I have the req to show the web content as follows

<Desc>
<Bullet List>
<Item1>
<Sublist>
<subitem1>
</Sublist>
<Item2>
</Bullet List>
</Desc>

To do this i have created the strucure as below

<root>
  <dynamic-element name="itemslist" type="boolean" index-type="" repeatable="false">
    <dynamic-element name="itemlink" type="text" index-type="" repeatable="false">  </dynamic-element>
    <dynamic-element name="itemdesc" type="text" index-type="" repeatable="false"></dynamic-element>
  </dynamic-element>
  <dynamic-element name="subbullet_image" type="image_gallery" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="bullet_image" type="image_gallery" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="heading" type="text" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="subheading" type="text" index-type="" repeatable="false"></dynamic-element>
  <dynamic-element name="content" type="text_area" index-type="" repeatable="false"></dynamic-element>
</root>


and my template as follows

<div>
<h1>
	<span style="color: rgb(0,128,128)">$heading.data</span></h1>

#if ($subheading.data != "")
<h2>
	<span style="color: rgb(47,79,79)">$subheading.data</span></h2>
#end

#if($content.data != "")
		<p>
			$content.data			
		</p>
#end

#if($itemslist.data)
<table summary="" border="0" cellpadding="0" cellspacing="0" frame="void" rules="none">


	#foreach($row in $itemslist.getSiblings())
	
	<tbody><tr>
                  
			<td valign="top" width="31" align="left">
				<img id="bullet1" src="$bullet_image.data" alt="item 1" width="23" align="middle" border="0" height="23">
			</td>
			
			#if ($row.itemdesc != "")
				<td valign="top" align="left">
					<a href="$row.itemlink.data">$row.itemdesc.data</a>                     
				
			      </td>
			#end
		   
            </tr>
	#end

</tbody></table>
#end
</div>


And i am able to add the content in Journal portlets but am not able to see the list items completely, only the first item is displayed and rest of the items are not able to display.

Anybody has any views on this like , is there any problem in this strucures or the way i am dealing in templates.

Pls help me.

thanks
prakash.