.content.xml 11.2 KB
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
    jcr:primaryType="cq:Page">
    <jcr:content
        jcr:mixinTypes="[sling:VanityPath]"
        jcr:primaryType="nt:unstructured"
        jcr:title="AEM Screens | Channel Dashboard"
        sling:redirect="{Boolean}false"
        sling:resourceType="screens/dcc/components/dashboard/page"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/dashboard/channel"
        contentPath="${requestPathInfo.suffix}"
        omnisearchLocationPath="/libs/granite/omnisearch/content/metadata/screens"
        pageURITemplate="/screens/dashboard/channel.html{+id}">
        <redirector
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/admin/contentchecker"
            allowed="^(/content/launches/.*)?(/content/screens|/content/screens/(.*))$"
            path="${requestPathInfo.suffix}"
            redirectWhenEmpty="/screens.html/content/screens"/>
        <head jcr:primaryType="nt:unstructured">
            <clientlibs
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/includeclientlibs"
                categories="[granite.ui.coral.foundation,cq.screens.dcc,screens.dcc.devices,cq.screens.dcc.dashboard]"/>
        </head>
        <breadcrumbs
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/datasources/breadcrumbs"
            parentPage="${granite:url(&quot;/screens.html&quot;)}"
            path="${requestPathInfo.suffix}"/>
        <actions jcr:primaryType="nt:unstructured">
            <primary jcr:primaryType="nt:unstructured"/>
            <secondary jcr:primaryType="nt:unstructured">
                <close
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                    action="foundation.link"
                    target=".screens-Channel"
                    text="Close"
                    variant="quiet">
                    <data
                        jcr:primaryType="nt:unstructured"
                        href.uritemplate="${granite:concat(&quot;/screens.html&quot;, granite:encodeURIPath(granite:relativeParent(requestPathInfo.suffix, 1)))}"/>
                </close>
            </secondary>
        </actions>
        <content
            granite:class="screens-Dashboard screens-ChannelDashboard"
            jcr:primaryType="nt:unstructured"
            sling:resourceType="screens/dcc/components/granite/dashboard">
            <items jcr:primaryType="nt:unstructured">
                <channelinfo
                    granite:class="screens-dashboard-Tile screens-dashboard-ChannelInfoTile"
                    granite:rel="screens-Channel"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    title="Channel Information">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <viewproperties
                                granite:rel="screens-dcc-actions-properties-activator"
                                granite:title="View channel properties"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="foundation.link"
                                icon="infoCircle"
                                target=".screens-Channel"
                                text="Properties"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    href.uritemplate="/screens/properties.html?item=${requestPathInfo.suffix}&amp;returnPage=/screens/dashboard/channel.html${requestPathInfo.suffix}"/>
                            </viewproperties>
                            <open
                                granite:rel="screens-dcc-actions-edit-activator"
                                granite:title="Edit channel"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="cq.wcm.open"
                                icon="edit"
                                target=".screens-Channel"
                                text="Edit"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    cookiePath.url="/"
                                    href.uritemplate="/bin/wcmcommand?cmd=open&amp;_charset_=utf-8&amp;path=${requestPathInfo.suffix}"/>
                            </open>
                            <push
                                granite:rel="screens-dcc-actions-Channel-pushchannel-activator"
                                granite:title="Update offline channel cache"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="dcc.channel.push"
                                icon="dataRefresh"
                                target=".screens-Channel"
                                text="Update Offline Content"
                                variant="actionBar"/>
                            <preview
                                granite:rel="screens-dcc-actions-preview-activator"
                                granite:title="Preview display"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="cq.wcm.open"
                                icon="viewOn"
                                relScope="item"
                                target=".screens-Channel"
                                text="Preview Channel"
                                variant="actionBar">
                                <data
                                    jcr:primaryType="nt:unstructured"
                                    href.uritemplate.abs="${requestPathInfo.suffix}.html?wcmmode=disabled"/>
                            </preview>
                        </default>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <channelinfo
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/dashboard/channelinfo"/>
                    </content>
                </channelinfo>
                <displays
                    granite:class="screens-dashboard-Tile screens-dashboard-ChannelDisplaysTile"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="screens/dcc/components/granite/dashboard/tile"
                    modeGroup="screens-dcc-collection-displays"
                    target=".screens-DisplayCollection"
                    title="Assigned Displays">
                    <actions jcr:primaryType="nt:unstructured">
                        <default jcr:primaryType="nt:unstructured">
                            <updateall
                                granite:rel="screens-dcc-actions-Device-configupdate-activator"
                                granite:title="Update the config and content of all devices"
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="granite/ui/components/coral/foundation/collection/action"
                                action="cq.screens.dcc.device.updateconfig"
                                icon="publish"
                                target=".screens-DisplayCollection"
                                text="Update Devices"
                                variant="actionBar"/>
                        </default>
                        <selection jcr:primaryType="nt:unstructured"/>
                    </actions>
                    <content
                        granite:class="screens-dashboard-Tile-content--spaced"
                        jcr:primaryType="nt:unstructured">
                        <list
                            granite:rel="screens-DisplayCollection"
                            jcr:primaryType="nt:unstructured"
                            jcr:title="List View"
                            sling:resourceType="granite/ui/components/coral/foundation/table"
                            layoutId="list"
                            limit="{Long}10"
                            modeGroup="screens-dcc-collection-displays"
                            path="${requestPathInfo.suffix}"
                            selectionMode="row"
                            size="${empty requestPathInfo.selectors[1] ? &quot;10&quot; : requestPathInfo.selectors[1]}"
                            sortMode="remote"
                            src="/mnt/overlay/screens/dcc/content/dashboard/channel/jcr:content/content/items/displays/content/list{.offset,limit}.html{+id}{?sortName,sortDir}">
                            <columns jcr:primaryType="nt:unstructured">
                                <thumbnail jcr:primaryType="nt:unstructured"/>
                                <channel
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Display"
                                    sortable="{Boolean}true"/>
                                <role
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Resolution"
                                    sortable="{Boolean}true"/>
                                <actions jcr:primaryType="nt:unstructured"/>
                            </columns>
                            <datasource
                                jcr:primaryType="nt:unstructured"
                                sling:resourceType="screens/dcc/components/datasources/displays"
                                itemResourceType="screens/dcc/components/dashboard/displaylistrow"
                                limit="${empty requestPathInfo.selectors[1] ? &quot;11&quot; : requestPathInfo.selectors[1] + 1}"
                                offset="${empty requestPathInfo.selectors[0] ? &quot;0&quot; : requestPathInfo.selectors[0]}"
                                path="${requestPathInfo.suffix}"/>
                        </list>
                    </content>
                </displays>
            </items>
        </content>
    </jcr:content>
</jcr:root>