';
+ });
+
+ // if this is loaded via the Dailog's extra client libs, the CSS is lost so it has to be re-added here.
+ content += '';
+ modalBody.html(content);
+
+ setTimeout(function() {
+ window.dispatchEvent(new Event('resize'));
+ }, 50);
+
+ document.querySelectorAll('.acs-aem-commons__aem-sites-copy-publish-url__copy-cmd').forEach(function(button) {
+ button.addEventListener('click', function() {
+ var key = this.getAttribute('data-copy-target');
+ var inputField = this.previousElementSibling;
+ inputField.select();
+ document.execCommand("copy");
+ });
+ });
+ });
+
+ result.fail(function() {
+ modalBody.html('
' + failureMessage + '
');
+ });
+ });
+
+ $( document ).one('foundation-contentloaded', function(e) {
+ if (!document.execCommand && !document.queryCommandSupported) {
+ $('.acs-aem-commons__aem-sites-copy-publish-url__copy-cmd').hide();
+ }
+ if (!document.queryCommandSupported('copy')) {
+ $('.acs-aem-commons__aem-sites-copy-publish-url__copy-cmd').hide();
+ }
+ });
+
+})(document, Granite.$);
diff --git a/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/genericlist/body.jsp b/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/genericlist/body.jsp
index ce24b51802..fa7310b4dd 100644
--- a/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/genericlist/body.jsp
+++ b/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/genericlist/body.jsp
@@ -17,7 +17,7 @@
limitations under the License.
#L%
--%>
-<%@page import="com.adobe.acs.commons.genericlists.GenericList, com.adobe.acs.commons.mcp.form.impl.GeneratedDialogWrapper"%>
+<%@page import="com.adobe.acs.commons.genericlists.GenericList, com.adobe.acs.commons.mcp.form.GeneratedDialogWrapper"%>
<%@include file="/libs/foundation/global.jsp"%>
<%
diff --git a/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/sites-publish-url/.content.xml b/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/sites-publish-url/.content.xml
new file mode 100644
index 0000000000..450e0c0d05
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/acs-commons/components/utilities/sites-publish-url/.content.xml
@@ -0,0 +1,5 @@
+
+
\ No newline at end of file
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/.content.xml
new file mode 100644
index 0000000000..333925bb94
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/.content.xml
new file mode 100644
index 0000000000..333925bb94
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/.content.xml
new file mode 100644
index 0000000000..0aed9288ef
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/.content.xml
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/.content.xml
new file mode 100644
index 0000000000..fa54b73927
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/.content.xml
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/.content.xml
new file mode 100644
index 0000000000..ca1b5b0f95
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/.content.xml
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/.content.xml
new file mode 100644
index 0000000000..ca1b5b0f95
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/.content.xml
@@ -0,0 +1,22 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/acs-commons_copy-publish-url-dialog/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/acs-commons_copy-publish-url-dialog/.content.xml
new file mode 100644
index 0000000000..34e7d5350c
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/acs-commons_copy-publish-url-dialog/.content.xml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/.content.xml
new file mode 100644
index 0000000000..03441a7f68
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/.content.xml
@@ -0,0 +1,20 @@
+
+
+
+
diff --git a/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/acs-commons_copy-publish-url/.content.xml b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/acs-commons_copy-publish-url/.content.xml
new file mode 100644
index 0000000000..cb1c22571c
--- /dev/null
+++ b/ui.apps/src/main/content/jcr_root/apps/wcm/core/content/editor/_jcr_content/content/items/content/header/items/headerbar/items/pageinfopopover/items/list/items/acs-commons_copy-publish-url/.content.xml
@@ -0,0 +1,49 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ui.config/pom.xml b/ui.config/pom.xml
index 3b3aa08ea3..1e70526e75 100644
--- a/ui.config/pom.xml
+++ b/ui.config/pom.xml
@@ -25,7 +25,7 @@
com.adobe.acsacs-aem-commons
- 6.9.7-SNAPSHOT
+ 6.10.0-SNAPSHOT
diff --git a/ui.config/src/main/content/jcr_root/apps/acs-commons/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-acs-commons-author.config b/ui.config/src/main/content/jcr_root/apps/acs-commons/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-acs-commons-author.config
index 53258e42bd..4ecaad1997 100644
--- a/ui.config/src/main/content/jcr_root/apps/acs-commons/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-acs-commons-author.config
+++ b/ui.config/src/main/content/jcr_root/apps/acs-commons/config.author/org.apache.sling.jcr.repoinit.RepositoryInitializer-acs-commons-author.config
@@ -74,5 +74,8 @@ set ACL for acs-commons-file-fetch-service
allow jcr:read,jcr:versionManagement,rep:write,crx:replicate on /content/dam
allow jcr:read on /
end
+
+# Copy Publish URL - AEM Sites Page Editor overlay
+create path (nt:unstructured) /apps/wcm(nt:folder)/core(nt:folder)/content(sling:Folder)/editor(cq:Page)/jcr:content/content/items(sling:OrderedFolder)/content(sling:OrderedFolder)/header/items/headerbar/items/pageinfopopover/items/list/items
"
]
\ No newline at end of file
diff --git a/ui.content/pom.xml b/ui.content/pom.xml
index 8188e9cb80..cf2fb0e777 100644
--- a/ui.content/pom.xml
+++ b/ui.content/pom.xml
@@ -25,7 +25,7 @@
com.adobe.acsacs-aem-commons
- 6.9.7-SNAPSHOT
+ 6.10.0-SNAPSHOT