[opencms-dev] Field configuration - OpenCms Search
Juan Francisco Fernández
juanffernandez at faffe.es
Fri Oct 24 12:58:08 CEST 2008
If you get the field Photo[1]/Image/link, it would retrieve the target
field, at least if you XSD configuration is similar at the OpenCms examples.
Can you post your XSD schema for the Photo type?
-----Mensaje original-----
De: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org]
En nombre de Andrea Puddu
Enviado el: viernes, 24 de octubre de 2008 11:40
Para: The OpenCms mailing list
Asunto: Re: [opencms-dev] Field configuration - OpenCms Search
More in detail..
if my article xml is like this
<Contents xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ....>
<Content language="en">
<Section><![CDATA[CRONACA]]></Section>
<...>
<Teaser>
<..>
<text>....</text>
</Teaser>
<Photo>
<Image>
<link internal="true" type="STRONG">
<target><![CDATA[/sites/mysite/channels/agencies/media/08/09/05/5fb824cdcb49
33a52689c6749a9fb31e.jpg]]></target>
<uuid>d8c1d325-7b64-11dd-8442-b167113d73a7</uuid>
</link>
</Image>
<Description><![CDATA[descrizione]]></Description>
</Photo>
I can get the text field successfully with the following Xpath
Teaser[1]/text[1]
But I'm struggling to get the image target field with no luck...
it should be:
Photo[1]/Image[1]/link[1]/target ?
or
Photo[1]/Image[1]/link[1]/target[1] ??
But no chance.
Any ideas?
Thanks,
Andrea
---------------------------
Andrea Puddu
docpuddu at tiscali dot it
http://www.linkedin.com/in/andreapuddu
-------------------------------------------
_______________________________________________
This mail is sent to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list