Fórum
Problem getting "instance-id" attribute from velocity
Bruno Almeida, modificado 13 Anos atrás.
Problem getting "instance-id" attribute from velocity
New Member Postagens: 2 Data de Entrada: 09/11/10 Postagens Recentes
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> 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
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> 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 11 Anos atrás.
RE: Problem getting "instance-id" attribute from velocity
Junior Member Postagens: 39 Data de Entrada: 03/11/11 Postagens Recentes
Hi, same problem here. Is there any way now in 6.1.10 EE to solve this issue?