Foros de discusión

Problem getting "instance-id" attribute from velocity

Bruno Almeida, modificado hace 13 años.

Problem getting "instance-id" attribute from velocity

New Member Mensajes: 2 Fecha de incorporación: 9/11/10 Mensajes recientes
Hi all,

I have a structure/content like this:

<root>
[indent]<dynamic-element instance-id="60DDfQX9" name="parte" type="ContentPart" index-type="">[/indent]
[indent][indent]<dynamic-element instance-id="8I8RQWzK" name="field1" type="text" index-type="">[/indent][/indent]
[indent][indent][indent]<dynamic-content><![CDATA[02]]></dynamic-content>[/indent][/indent][/indent]
[indent][indent]</dynamic-element>[/indent][/indent]
[indent][indent]<dynamic-element instance-id="4kVjQGMP" name="separator" type="text" index-type="">[/indent][/indent]
[indent][indent][indent]<dynamic-content><![CDATA[Titulo Separador]]></dynamic-content>[/indent][/indent][/indent]
[indent][indent]</dynamic-element>[/indent][/indent]
[indent][indent]<dynamic-element instance-id="tKLRAB3K" name="html" type="text_area" index-type="">[/indent][/indent]
[indent][indent][indent]<dynamic-content><![CDATA[<p>&nbsp;Olá</p>]]></dynamic-content>[/indent][/indent][/indent]
[indent][indent]</dynamic-element>[/indent][/indent]
[indent][indent]<dynamic-content><![CDATA[]]></dynamic-content>[/indent][/indent]
[indent]</dynamic-element>[/indent]
</root>

and I'm able to get the "type" attribute from velocity like this $parte.type. Nevertheless, the same attempt on "instance-id" ($parte.instance-id) is not successfull.
Can anyone tell me what I'm doing wrong or advise me on another way to do this?
Tks in advance for any help provided.
Bruno
Robert Kornmesser, modificado hace 11 años.

RE: Problem getting "instance-id" attribute from velocity

Junior Member Mensajes: 39 Fecha de incorporación: 3/11/11 Mensajes recientes
Hi, same problem here. Is there any way now in 6.1.10 EE to solve this issue?