Fórumok
Problem getting "instance-id" attribute from velocity
Bruno Almeida, módosítva 13 év-val korábban
Problem getting "instance-id" attribute from velocity
New Member Bejegyzések: 2 Csatlakozás dátuma: 2010.11.09. Legújabb bejegyzések
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, módosítva 11 év-val korábban
RE: Problem getting "instance-id" attribute from velocity
Junior Member Bejegyzések: 39 Csatlakozás dátuma: 2011.11.03. Legújabb bejegyzések
Hi, same problem here. Is there any way now in 6.1.10 EE to solve this issue?