Add Custom button in AEM sites console
Hi AEM Community, I'm working on migration project , migrating from classic UI to touch UI. we have one button on siteadmin navigation bar called "start workflow" when clicked content tree dialog will open first where user where dialog will open with selected page(s) will show along next and cancel button if user selects next button then workflow model screen will load where model will be prepopulated.
To achieve same in touch UI I have create a button at /apps/wcm/core/content/sites/jcr:content/actions/secondary/wokflow-button and below is xml
<?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:primaryType="nt:unstructured">
<actions jcr:primaryType="nt:unstructured">
<secondary jcr:primaryType="nt:unstructured">
<workflow-button
granite:rel="workflow-wizard"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/anchorbutton"
class="cq-admin-action-bar-activator"
icon="workflow"
text="start workflow"
variant="primary">
<granite:data
jcr:primaryType="nt:unstructured"
cq-admin-activator-src="/apps/project/tools/start-workflow.html"/>
</secondary>
<selection/>
</actions>
</jcr:content>
<jcr_content/>
</jcr:root>
which is visble on sites console and i created dialog at /apps/project/tools/start-workflow
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/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:primaryType="nt:unstructured"
jcr:title="Start Workflow"
sling:resourceType="granite/ui/components/coral/foundation/page">
<head jcr:primaryType="nt:unstructured">
<clientlibs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/includeclientlibs"
categories="coralui3,granite.ui.coral.foundation,granite.ui.shell,cq.wcm.admin"/>
</head>
<body jcr:primaryType="nt:unstructured">
<items jcr:primaryType="nt:unstructured">
<form
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form"
action="/bin/startworkflow"
class="foundation-form foundation-wizard-form"
method="post"
style="vertical">
<successresponse
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/responses/reload"/>
<items jcr:primaryType="nt:unstructured">
<wizard
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/wizard">
<items jcr:primaryType="nt:unstructured">
<selectPayload
jcr:primaryType="nt:unstructured"
jcr:title="Select Content"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<path
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldLabel="Content to start workflow on"
name="path"
required="{Boolean}true"
rootPath="/content/project"/>
</items>
</selectPayload>
<selectModel
jcr:primaryType="nt:unstructured"
jcr:title="Select Workflow"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset">
<items jcr:primaryType="nt:unstructured">
<model
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
fieldLabel="Workflow Model"
name="model"
required="{Boolean}true"
value="/conf/global/settings/workflow/models/project/workflowmodel">
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="cq/core/content/projects/workflow/datasource/models"
itemResourceType="granite/ui/components/coral/foundation/select/item"/>
</model>
</items>
</selectModel>
</items>
</wizard>
</items>
</form>
</items>
</body>
<actions jcr:primaryType="nt:unstructured">
<cancel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
class="foundation-wizard-control"
data-foundation-wizard-control-action="cancel"
text="Cancel"/>
<next
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
class="foundation-wizard-control"
data-foundation-wizard-control-action="next"
text="Start Workflow"
variant="primary"/>
</actions>
</jcr:content>
</jcr:root>
am able to load dialog if I access directly with path but not loading upon clicking on button
please let me know if someone had worked on it or know the issue, I'm facing attaching classic UI screenshot for reference

Thanks in advance.
