Content

Page tree

Example: Show MenuItem based on architecture series

<?xml version="1.0" encoding="UTF-8"?>
<SnomIPPhoneMenu>
    <If condition="$(arch_series)==snom7XX">
        <MenuItem name="This is a 7XX">
            <Url>http://website.com/snom7xx.xml</Url>
        </MenuItem>
    </If>
    <Elif condition="$(arch_series)==snomD3X5">
        <MenuItem name="This is a D3X5">
            <Url>http://website.com/snomD3xx.xml</Url>
        </MenuItem>
    </Elif>
    <Else>
        <MenuItem name="Another architecture: I am $(arch_series)">
            <Url>http://website.com/another_arch_series.xml</Url>
        </MenuItem>
    </Else>
</SnomIPPhoneMenu>

Result: