aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/test/java/com/yahoo/search/pagetemplates/engine/test/MapSectionsToSections.xml
blob: 65fcaa870aa320296ef8e08ab734e9f4004330a6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!-- Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<page id="MapSectionsToSections" layout="column" description="Contains 4 boxes, to which 4 sections are mapped">

    <section layout="row" description="row 1">
        <placeholder id="box1holder"/>
        <placeholder id="box2holder"/>
    </section>
    <section layout="row" description="row 2">
        <placeholder id="box3holder"/>
        <placeholder id="box4holder"/>
    </section>

    <choice method="myMethod">
        <map to="box1holder box2holder box3holder box4holder">
            <section id="box1" source="source1"/>
            <section id="box2" source="source2"/>
            <item>
                <section id="box3" source="source3"/>
                <section id="box5" source="source5"/>
            </item>
            <section id="box4" source="source4"/>
        </map>
    </choice>

    <choice> <!-- Empty choices should have no effect -->
    </choice>

</page>