.content.xml 10.7 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:mixinTypes="[granite:InternalArea]"
    jcr:primaryType="cq:Page">
    <jcr:content
        jcr:mixinTypes="[sling:VanityPath]"
        jcr:primaryType="nt:unstructured"
        jcr:title="AEM Screens | Create Project"
        sling:redirect="{Boolean}false"
        sling:resourceType="granite/ui/components/coral/foundation/page"
        sling:vanityOrder="{Long}1200"
        sling:vanityPath="/screens/createstructurewizard">
        <redirector
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/admin/contentchecker"
            allowed="^(/content/screens|/content/screens/(.*))$"
            path="${requestPathInfo.suffix}"
            redirectWhenEmpty="/screens.html/content/screens"/>
        <head jcr:primaryType="nt:unstructured">
            <viewport
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/admin/page/viewport"/>
            <favicon
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/page/favicon"/>
            <clientlibs
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/includeclientlibs"
                categories="[coralui3,granite.ui.coral.foundation,screens.dcc.createstructurewizard]"/>
        </head>
        <body
            jcr:primaryType="nt:unstructured"
            sling:resourceType="granite/ui/components/coral/foundation/page/body">
            <items jcr:primaryType="nt:unstructured">
                <form
                    granite:class="cq-siteadmin-admin-createsite"
                    granite:comment="We set &quot;novalidate&quot; = true as the wizard is doing validation already, to avoid double validation"
                    jcr:primaryType="nt:unstructured"
                    sling:resourceType="granite/ui/components/coral/foundation/form"
                    action="/bin/wcmcommand"
                    foundationForm="{Boolean}true"
                    maximized="{Boolean}true"
                    method="post"
                    novalidate="{Boolean}true"
                    style="vertical">
                    <granite:data
                        jcr:primaryType="nt:unstructured"
                        foundation-form-response-ui-success="\{&quot;name&quot;: &quot;foundation.redirect&quot;, &quot;href&quot;: &quot;${granite:url(empty param.returnPage ? granite:concat(&quot;/screens.html&quot;, granite:encodeURIPath(requestPathInfo.suffix)) : param.returnPage)}&quot;}"/>
                    <items jcr:primaryType="nt:unstructured">
                        <cmd
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                            name="cmd"
                            value="createSite"/>
                        <charset
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
                            name="_charset_"
                            value="utf-8"/>
                        <wizard
                            jcr:primaryType="nt:unstructured"
                            jcr:title="Create Screens Project"
                            sling:resourceType="granite/ui/components/coral/foundation/wizard"
                            cancelHref="${empty header.Referer ? granite:concat(&quot;/screens.html&quot;, granite:encodeURIPath(requestPathInfo.suffix)) : header.Referer}">
                            <items jcr:primaryType="nt:unstructured">
                                <blueprint
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Blueprint"
                                    sling:resourceType="granite/ui/components/coral/foundation/form/advancedselect"
                                    maximized="{Boolean}true"
                                    name="srcPath"
                                    required="{Boolean}true">
                                    <granite:data
                                        jcr:primaryType="nt:unstructured"
                                        foundation-validation-ui="none"/>
                                    <field
                                        jcr:primaryType="nt:unstructured"
                                        sling:resourceType="granite/ui/components/coral/foundation/masonry"
                                        selectionCount="single"
                                        selectionMode="{Boolean}true">
                                        <datasource
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="cq/gui/components/siteadmin/admin/createsitewizard/blueprintdatasource"
                                            exclude="(/etc/blueprints/|/(apps|libs)/msm/)(?!screens).*"
                                            itemResourceType="cq/gui/components/siteadmin/admin/createsitewizard/blueprintcard"/>
                                    </field>
                                    <parentConfig jcr:primaryType="nt:unstructured">
                                        <next
                                            granite:class="foundation-wizard-control"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/button"
                                            disabled="{Boolean}true"
                                            text="Next"
                                            variant="primary">
                                            <granite:data
                                                jcr:primaryType="nt:unstructured"
                                                foundation-wizard-control-action="next"/>
                                        </next>
                                    </parentConfig>
                                </blueprint>
                                <properties
                                    jcr:primaryType="nt:unstructured"
                                    jcr:title="Properties"
                                    sling:resourceType="granite/ui/components/coral/foundation/wizard/lazycontainer"
                                    src="/mnt/overlay/screens/dcc/content/createstructurewizard/properties.html${granite:encodeURIPath(requestPathInfo.suffix)}?blueprint={srcPath}">
                                    <parentConfig jcr:primaryType="nt:unstructured">
                                        <next
                                            granite:class="foundation-wizard-control"
                                            jcr:primaryType="nt:unstructured"
                                            sling:resourceType="granite/ui/components/coral/foundation/button"
                                            disabled="{Boolean}true"
                                            text="Create"
                                            type="submit"
                                            variant="primary">
                                            <granite:data
                                                jcr:primaryType="nt:unstructured"
                                                foundation-wizard-control-action="next"/>
                                        </next>
                                    </parentConfig>
                                </properties>
                            </items>
                        </wizard>
                    </items>
                </form>
            </items>
        </body>
    </jcr:content>
    <properties
        jcr:primaryType="nt:unstructured"
        sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns"
        margin="{Boolean}true">
        <items jcr:primaryType="nt:unstructured">
            <column1
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/container">
                <items jcr:primaryType="nt:unstructured">
                    <masters
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/select"
                        emptyText="Select"
                        fieldDescription="Select the folders of the blueprint that you want to copy to the Screens project"
                        fieldLabel="Master Pages"
                        multiple="true"
                        name="msm:masterPages">
                        <datasource
                            jcr:primaryType="nt:unstructured"
                            sling:resourceType="screens/dcc/components/datasources/masterpages"
                            blueprint="${param.blueprint}"/>
                    </masters>
                </items>
            </column1>
            <column2
                jcr:primaryType="nt:unstructured"
                sling:resourceType="granite/ui/components/coral/foundation/container">
                <items jcr:primaryType="nt:unstructured">
                    <destination
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
                        fieldLabel="Destination Path"
                        name="destPath"
                        required="true"
                        rootPath="/content/screens"
                        value="${requestPathInfo.suffix}"/>
                    <title
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                        fieldLabel="Title"
                        name="./jcr:title"
                        required="{Boolean}true"/>
                    <name
                        jcr:primaryType="nt:unstructured"
                        sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
                        fieldLabel="Name"
                        name="label"
                        validation="foundation.jcr.name"/>
                </items>
            </column2>
        </items>
    </properties>
</jcr:root>