[opencms-dev] Field configuration - OpenCms Search

Andrea Puddu docpuddu at tiscali.it
Fri Oct 24 11:40:04 CEST 2008


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/5fb824cdcb4933a52689c6749a9fb31e.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
-------------------------------------------








More information about the opencms-dev mailing list