diff --git a/aemdesign-aem-common/filevault-export.ps1 b/aemdesign-aem-common/filevault-export.ps1 new file mode 100644 index 000000000..ef21a13d3 --- /dev/null +++ b/aemdesign-aem-common/filevault-export.ps1 @@ -0,0 +1,160 @@ +Param( + #equivalent of using localhost in docker container + [string]$AEM_HOST = "localhost", + # TCP port SOURCE_CQ listens on + [string]$AEM_PORT = "4502", + # AEM Admin user for AEM_HOST + [string]$AEM_USER = "admin", + # AEM Admin password for AEM_HOST + [string]$AEM_PASSWORD = "admin", + # Server WebDav Path + #$AEM_WEBDAV_PATH = "/crx/server/crx.default/jcr:root/" + [string]$AEM_WEBDAV_PATH = "/crx", + [string]$AEM_SCHEMA = "http", + #to set additional flags if required + [string]$VLT_FLAGS = "--insecure -Xmx2g", + [string]$VLT_CMD = "../tools/vault-cli/bin/vlt", + # Root folder name for placing content + [string]$CONTENT_DESTINATION = ".\src\main\content", + [string]$FILTER_FILE = "${CONTENT_DESTINATION}\META-INF\vault\filter.xml", + [string]$FILTER_FILE_LOCATION = "${CONTENT_DESTINATION}\META-INF", + [string[]]$ROOT_PATHS, + [switch]$Silent = $false, + [string]$LOG_PATH = (Resolve-Path -Path "..\logs" -Relative) +) + +Function Format-XMLIndent +{ + [Cmdletbinding()] + [Alias("IndentXML")] + param + ( + [Parameter(ValueFromPipeline)] + [xml]$Content, + [int]$Indent + ) + + # String Writer and XML Writer objects to write XML to string + $StringWriter = New-Object System.IO.StringWriter + $XmlWriter = New-Object System.XMl.XmlTextWriter $StringWriter + + # Default = None, change Formatting to Indented + $xmlWriter.Formatting = "indented" + + # Gets or sets how many IndentChars to write for each level in + # the hierarchy when Formatting is set to Formatting.Indented + $xmlWriter.Indentation = $Indent + + $Content.WriteContentTo($XmlWriter) + $XmlWriter.Flush();$StringWriter.Flush() + $StringWriter.ToString() +} + + +Function GetFilterList +{ + [Cmdletbinding()] + [Alias("filterList")] + param + ( + [Parameter(ValueFromPipeline)] + [string]$FILTER_FILE = ".\src\main\content\META-INF\vault\filter.xml" + ) + $FILTER_PATHS = [System.Collections.ArrayList]::new() + + $FILTER_XML = [xml](Get-Content $FILTER_FILE) + $FILTER_XML_CONTENT = $FILTER_XML.SelectNodes("//workspaceFilter") + $FILTER_XML_ITEMS = $FILTER_XML_CONTENT.SelectNodes('//filter') + $FILTER_XML_ITEMS | ForEach-Object { + [void]$FILTER_PATHS.Add($_.root) + } + + return $FILTER_PATHS +} + +if (-not($ROOT_PATHS)) { + $ROOT_PATHS = GetFilterList +} + +Write-Output "------- CONFIG ----------" +Write-Output "AEM_SCHEMA: $AEM_SCHEMA" +Write-Output "AEM_HOST: $AEM_HOST" +Write-Output "AEM_PORT: $AEM_PORT" +Write-Output "AEM_USER: $AEM_USER" +Write-Output "CONTENT_DESTINATION: $CONTENT_DESTINATION" +Write-Output "ROOT_PATHS: $ROOT_PATHS" +Write-Output "FILTER_FILE: $FILTER_FILE" +Write-Output "Silent: $Silent" +Write-Output "VLT_FLAGS: $VLT_FLAGS" +Write-Output "VLT_CMD:" + +$ROOT_PATHS | ForEach-Object { + Write-Output "${VLT_CMD} ${VLT_FLAGS} --credentials ${AEM_USER}:****** export -v ${AEM_SCHEMA}://${AEM_HOST}:${AEM_PORT}${AEM_WEBDAV_PATH} $_ ${CONTENT_DESTINATION}" +} + +if (-not($Silent)) +{ + $START = Read-Host -Prompt 'Do you want to start export with these settings? (y/n)' + + if ($START -ne "y") + { + Write-Output "Quiting..." + Exit + } +} + +Write-Output "------- START Exporting content ----------" +$ROOT_PATHS_LAST = $ROOT_PATHS | Select-Object -Last 1 +$ROOT_PATHS | ForEach-Object { + Write-Output "START Export $_" + $LOG_FILENAME = "$_".Replace("/","-") + + Write-Output "Remove Filer..." + Copy-Item ".\src\main\content\META-INF\vault\filter-blank.xml" -Destination "$FILTER_FILE" + + Write-Output "Create filter for: $_" + $FILTER_XML = [xml](Get-Content $FILTER_FILE) + $FILTER_XML_CONTENT = $FILTER_XML.SelectNodes("//workspaceFilter") + $FILTER_XML_DELETE = $FILTER_XML_CONTENT.SelectNodes('//filter') + $FILTER_XML_DELETE | ForEach-Object{ + $DELETE_STATUS = $FILTER_XML_CONTENT.RemoveChild($_) + } + $FILTER_XML_CONTENT_NEW = $FILTER_XML.CreateNode("element","filter","") + $FILTER_XML_CONTENT_NEW.SetAttribute("root",$_) + $FILTER_XML_CONTENT_NEW_ADD = $FILTER_XML_CONTENT.AppendChild($FILTER_XML_CONTENT_NEW) + Write-Output "Saving..." + $FILTER_XML.OuterXml | IndentXML -Indent 4 | Out-File $FILTER_FILE -encoding "UTF8" + Write-Output "Done..." + + Write-Output "Running VLT..." + Invoke-Expression -Command "${VLT_CMD} ${VLT_FLAGS} --credentials ${AEM_USER}:${AEM_PASSWORD} export -v ${AEM_SCHEMA}://${AEM_HOST}:${AEM_PORT}${AEM_WEBDAV_PATH} $_ ${CONTENT_DESTINATION}" | Tee-Object -FilePath "${LOG_PATH}\filevailt-export-$LOG_FILENAME.log" + + Write-Output "END Export $_" +} + +Write-Output "------- END Exporting content ----------" + +Write-Output "------- START Updating ${FILTER_FILE} ----------" + +$FILTER_XML = [xml](Get-Content $FILTER_FILE) +Write-Output "Removing Existing Filters..." +$FILTER_XML_CONTENT = $FILTER_XML.SelectNodes("//workspaceFilter") +$FILTER_XML_DELETE = $FILTER_XML_CONTENT.SelectNodes('//filter') +$FILTER_XML_DELETE | ForEach-Object{ + $DELETE_STATUS = $FILTER_XML_CONTENT.RemoveChild($_) +} +Write-Output "Adding Exported Filters..." +$ROOT_PATHS | ForEach-Object { + $FILTER_XML_CONTENT_NEW = $FILTER_XML.CreateNode("element","filter","") + $FILTER_XML_CONTENT_NEW.SetAttribute("root",$_) + $FILTER_XML_CONTENT_NEW_ADD = $FILTER_XML_CONTENT.AppendChild($FILTER_XML_CONTENT_NEW) +} +Write-Output "Saving..." +$FILTER_XML.OuterXml | IndentXML -Indent 4 | Out-File $FILTER_FILE -encoding "UTF8" +Write-Output "Done." +Write-Output "------- DONE Updating ${FILTER_FILE} ----------" + +Write-Output "------- Revert Filter.xml ----------" +git checkout HEAD src/main/content/META-INF/ +git clean -fx src/main/content/META-INF +Write-Output "------- Revert Filter.xml ----------" diff --git a/aemdesign-aem-common/filevault-import.ps1 b/aemdesign-aem-common/filevault-import.ps1 new file mode 100644 index 000000000..060a4af76 --- /dev/null +++ b/aemdesign-aem-common/filevault-import.ps1 @@ -0,0 +1,225 @@ +Param( + #equivalent of using localhost in docker container + [string]$AEM_HOST = "localhost", + # TCP port SOURCE_CQ listens on + [string]$AEM_PORT = "4502", + # AEM Admin user for AEM_HOST + [string]$AEM_USER = "admin", + # AEM Admin password for AEM_HOST + [string]$AEM_PASSWORD = "admin", + # Root folder name for placing content + [string]$SOURCE_CONTENT_FOLDER = "localhost-author-export", + # Server WebDav Path + #$AEM_WEBDAV_PATH = "/crx/server/crx.default/jcr:root/" + [string]$AEM_WEBDAV_PATH = "/crx", + [string]$AEM_SCHEMA = "http", + #to set additional flags if required + [string]$VLT_FLAGS = "--insecure -Xmx2g", + [string]$VLT_CMD = "../tools/vault-cli/bin/vlt", + # Root folder name for placing content + [string]$CONTENT_DESTINATION = ".\src\main\content", + [string]$FILTER_FILE = "${CONTENT_DESTINATION}\META-INF\vault\filter.xml", + [string]$FILTER_FILE_LOCATION = "${CONTENT_DESTINATION}\META-INF", + #which filter paths to import + [string[]]$ROOT_PATHS, + [string]$ROOT_PATH = "/", + [string]$CONTENT_SOURCE = (Resolve-Path -Path "src\main\content\jcr_root" -Relative), + # connection timeout + [string]$TIMEOUT = "5", + # host address + [string]$ADDRESS = "${AEM_SCHEMA}://${AEM_HOST}:${AEM_PORT}", + # Disable services before import + [string[]]$SERVICES_TO_DISABLE = @( + "/system/console/bundles/com.day.cq.cq-mailer", + "/system/console/bundles/com.adobe.granite.workflow.core" + ), + + [HashTable]$BODY_SERVICE_TO_DISABLE = @{ + "action"="stop" + }, + [HashTable]$BODY_SERVICE_TO_DISABLE_ENABLE = @{ + "action"="start" + }, + [switch]$Silent = $false, + [string]$LOG_PATH = (Resolve-Path -Path "..\logs" -Relative) +) + + +Function Format-XMLIndent +{ + [Cmdletbinding()] + [Alias("IndentXML")] + param + ( + [Parameter(ValueFromPipeline)] + [xml]$Content, + [int]$Indent + ) + + # String Writer and XML Writer objects to write XML to string + $StringWriter = New-Object System.IO.StringWriter + $XmlWriter = New-Object System.XMl.XmlTextWriter $StringWriter + + # Default = None, change Formatting to Indented + $xmlWriter.Formatting = "indented" + + # Gets or sets how many IndentChars to write for each level in + # the hierarchy when Formatting is set to Formatting.Indented + $xmlWriter.Indentation = $Indent + + $Content.WriteContentTo($XmlWriter) + $XmlWriter.Flush();$StringWriter.Flush() + $StringWriter.ToString() +} + + +function doSlingPost { + [CmdletBinding()] + Param ( + + [Parameter(Mandatory=$true)] + [string]$Url="http://localhost:4502", + + [Parameter(Mandatory)] + [ValidateNotNullOrEmpty()] + [ValidateSet('Post','Delete')] + [string]$Method, + + [Parameter(Mandatory=$false)] + [HashTable]$Body, + + [Parameter(Mandatory=$false, + HelpMessage="Provide Basic Auth Credentials in following format: :")] + [string]$BasicAuthCreds="", + + [Parameter(Mandatory=$false)] + [string]$UserAgent="", + + [Parameter(Mandatory=$false)] + [string]$Referer="", + + [Parameter(Mandatory=$false)] + [string]$Timeout="5" + + ) + + + + $HEADERS = @{ + } + + if (-not([string]::IsNullOrEmpty($UserAgent))) { + $HEADERS.add("User-Agent",$UserAgent) + } + + if (-not([string]::IsNullOrEmpty($Referer))) { + $HEADERS.add("Referer",$Referer) + } + + + if (-not([string]::IsNullOrEmpty($BasicAuthCreds))) { + $BASICAUTH = [System.Convert]::ToBase64String([System.Text.Encoding]::ASCII.GetBytes($BasicAuthCreds)) + $HEADERS.add("Authorization","Basic $BASICAUTH") + } + + + Write-Output "Performing action $Method on $Url." + + $Response = Invoke-WebRequest -Method Post -Headers $HEADERS -TimeoutSec $Timeout -Uri "$Url" -Form $Body -ContentType "application/x-www-form-urlencoded" + +} + +Write-Output "------- CONFIG ----------" +Write-Output "AEM_SCHEMA: $AEM_SCHEMA" +Write-Output "AEM_HOST: $AEM_HOST" +Write-Output "AEM_PORT: $AEM_PORT" +Write-Output "AEM_USER: $AEM_USER" +Write-Output "CONTENT_SOURCE: $CONTENT_SOURCE" +Write-Output "ROOT_PATH: $ROOT_PATH" +Write-Output "FILTER_FILE: $FILTER_FILE" +Write-Output "Silent: $Silent" +Write-Output "VLT_FLAGS: $VLT_FLAGS" +Write-Output "VLT_CMD: $VLT_CMD" +Write-Output "ROOT_PATHS:" +$ROOT_PATHS | ForEach-Object { + Write-Output " - $_" +} +Write-Output "SERVICES_TO_DISABLE:" +$SERVICES_TO_DISABLE | ForEach-Object { + Write-Output " - $_" +} + +if (-not($Silent)) +{ + $START = Read-Host -Prompt 'Do you want to start import with these settings? (y/n)' + + if ($START -ne "y") + { + Write-Output "Quiting..." + Exit + } +} + +Write-Output "------- Revert META-INF ----------" +git checkout HEAD src/main/content/META-INF/ +git clean -fx src/main/content/META-INF +Write-Output "------- Revert META-INF ----------" + +if ($ROOT_PATHS) +{ + Write-Output "------- START Update filter ----------" + $ROOT_PATHS_LAST = $ROOT_PATHS | Select-Object -Last 1 + $ROOT_PATHS | ForEach-Object { + $LOG_FILENAME = "$_".Replace("/","-") + + Write-Output "Remove exiting Filer..." + Copy-Item ".\src\main\content\META-INF\vault\filter-blank.xml" -Destination "$FILTER_FILE" + + Write-Output "Create filter for: $_" + $FILTER_XML = [xml](Get-Content $FILTER_FILE) + $FILTER_XML_CONTENT = $FILTER_XML.SelectNodes("//workspaceFilter") + $FILTER_XML_DELETE = $FILTER_XML_CONTENT.SelectNodes('//filter') + $FILTER_XML_DELETE | ForEach-Object{ + $DELETE_STATUS = $FILTER_XML_CONTENT.RemoveChild($_) + } + $FILTER_XML_CONTENT_NEW = $FILTER_XML.CreateNode("element","filter","") + $FILTER_XML_CONTENT_NEW.SetAttribute("root",$_) + $FILTER_XML_CONTENT_NEW_ADD = $FILTER_XML_CONTENT.AppendChild($FILTER_XML_CONTENT_NEW) + Write-Output "Saving..." + $FILTER_XML.OuterXml | IndentXML -Indent 4 | Out-File $FILTER_FILE -encoding "UTF8" + Write-Output "Done..." + } + + Write-Output "------- END Update filter ----------" +} + +if ($SERVICES_TO_DISABLE) +{ + Write-Output "------- Disable Services ----------" + $SERVICES_TO_DISABLE | ForEach-Object { + Write-Output "Stopping service: $_" + doSlingPost -Method Post -Referer $ADDRESS -UserAgent "curl" -Body $BODY_SERVICE_TO_DISABLE -Url "${ADDRESS}$_" -BasicAuthCreds ${AEM_USER}:${AEM_PASSWORD} -Timeout $TIMEOUT + } +} + +Write-Output "------- START Importing content ----------" +Write-Output "${VLT_CMD} ${VLT_FLAGS} --credentials ${AEM_USER}:****** import -v ${ADDRESS}${AEM_WEBDAV_PATH} ${CONTENT_SOURCE} ${ROOT_PATH}" + +Invoke-Expression -Command "${VLT_CMD} ${VLT_FLAGS} --credentials ${AEM_USER}:${AEM_PASSWORD} import -v ${ADDRESS}${AEM_WEBDAV_PATH} ${CONTENT_SOURCE} ${ROOT_PATH} " | Tee-Object -FilePath "${LOG_PATH}\filevailt-import.log" + +Write-Output "------- END Importing content ----------" + + +if ($SERVICES_TO_DISABLE) +{ + Write-Output "------- Enable Services ----------" + $SERVICES_TO_DISABLE | ForEach-Object { + Write-Output "Stopping service: $_" + doSlingPost -Method Post -Referer $ADDRESS -UserAgent "curl" -Body $BODY_SERVICE_TO_DISABLE_ENABLE -Url "${ADDRESS}$_" -BasicAuthCreds ${AEM_USER}:${AEM_PASSWORD} -Timeout $TIMEOUT + } +} + +Write-Output "------- Revert META-INF ----------" +git checkout HEAD src/main/content/META-INF/ +git clean -fx src/main/content/META-INF +Write-Output "------- Revert META-INF ----------" diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/.content.xml new file mode 100644 index 000000000..4b2a20fec --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/.content.xml @@ -0,0 +1,3 @@ + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/genericsnippet.jsp b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/genericsnippet.jsp new file mode 100644 index 000000000..efb74639a --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippet/genericsnippet.jsp @@ -0,0 +1,20 @@ +<%@page session="false" + import="com.day.cq.wcm.webservicesupport.Configuration, + com.day.cq.wcm.webservicesupport.ConfigurationManager" %><% +%><%@taglib prefix="cq" uri="http://www.day.com/taglibs/cq/1.0" %><% +%><% + +String[] services = pageProperties.getInherited("cq:cloudserviceconfigs", new String[]{}); +ConfigurationManager cfgMgr = resource.getResourceResolver().adaptTo(ConfigurationManager.class); +if(cfgMgr != null) { + String snippetCode = null; + Configuration cfg = cfgMgr.getConfiguration("generic-snippet", services); + if(cfg != null) { + snippetCode = cfg.get("snippetcode", null); + } + + if(snippetCode != null) { + %><%= snippetCode %><% + } +} +%> diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/.content.xml new file mode 100644 index 000000000..5dfca36a8 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/.content.xml @@ -0,0 +1,6 @@ + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/_cq_dialog/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/_cq_dialog/.content.xml new file mode 100644 index 000000000..5f09a252a --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/_cq_dialog/.content.xml @@ -0,0 +1,47 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/content.jsp b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/content.jsp new file mode 100644 index 000000000..7a0c5b058 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/content.jsp @@ -0,0 +1,27 @@ +<%@page session="false"%> +<%@page contentType="text/html" + pageEncoding="utf-8" + import="javax.jcr.Node" +%><%@include file="/libs/foundation/global.jsp" +%><%@include file="/libs/wcm/global.jsp" +%><%@include file="/libs/cq/cloudserviceconfigs/components/configpage/init.jsp" +%><% I18n i18n = new I18n(request); %> + +<% + if (currentPage.getParent().getProperties().get("componentReference","") == "") { + log.error("Generic Snippet config is missing componentReference, updating to aemdesign/components/cloudservices/genericsnippet."); + Node contentnode = currentPage.getParent().getContentResource().adaptTo(Node.class); + contentnode.setProperty("componentReference","aemdesign/components/cloudservices/genericsnippet"); + Session resourceSession = resource.getResourceResolver().adaptTo(Session.class); + resourceSession.save(); + } +%> +
+

+
    +
  • : <%= xssAPI.encodeForHTML(properties.get("snippetcode", "")).replaceAll("\\&\\#xa;","
    ") %>
  • + +
+
diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/dialog.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/dialog.xml new file mode 100644 index 000000000..32988386a --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/cloudservices/genericsnippetpage/dialog.xml @@ -0,0 +1,20 @@ + + + + + + + + + + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/contact-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/contact-details.footer.html index fb45794e9..d067c03d2 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/contact-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v2/contact-details/contact-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v3/contact-details/contact-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v3/contact-details/contact-details.footer.html index fb45794e9..d067c03d2 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v3/contact-details/contact-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/contact-details/v3/contact-details/contact-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/container.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/container.html index 72bdad706..d0de818e0 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/container.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/container.html @@ -1,5 +1,7 @@ diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/description.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/description.html index 320df564c..9fc4f7c8b 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/description.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/description.html @@ -1,5 +1,8 @@ diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/title.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/title.html index 672466207..7e55f588d 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/title.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/title.html @@ -1,6 +1,10 @@ diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/titleformatted.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/titleformatted.html index 1da398fb2..4d2c8db1e 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/titleformatted.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/generic-details/v1/generic-details/field/titleformatted.html @@ -1,6 +1,9 @@ diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v2/news-details/news-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v2/news-details/news-details.footer.html index fb45794e9..d80d4aaa1 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v2/news-details/news-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v2/news-details/news-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v3/news-details/news-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v3/news-details/news-details.footer.html index fb45794e9..d80d4aaa1 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v3/news-details/news-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/news-details/v3/news-details/news-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v2/page-details/page-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v2/page-details/page-details.footer.html index fb45794e9..72515b8f5 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v2/page-details/page-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v2/page-details/page-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v3/page-details/page-details.footer.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v3/page-details/page-details.footer.html index fb45794e9..72515b8f5 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v3/page-details/page-details.footer.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/details/page-details/v3/page-details/page-details.footer.html @@ -1,5 +1,7 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/article/v2/article/variant.default.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/article/v2/article/variant.default.html index 0bc6b2cf0..e4c06ff24 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/article/v2/article/variant.default.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/article/v2/article/variant.default.html @@ -1,6 +1,8 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/aside/v2/aside/variant.default.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/aside/v2/aside/variant.default.html index e70214915..11b654d11 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/aside/v2/aside/variant.default.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/aside/v2/aside/variant.default.html @@ -1,6 +1,8 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecol.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecol.html index 08a5c42c6..c436f1dfd 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecol.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecol.html @@ -1,6 +1,6 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecols.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecols.html index 0306a059a..7903fdec2 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecols.html +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/colctrl/v2/colctrl/columns.closecols.html @@ -1,6 +1,6 @@ \ No newline at end of file + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/.content.xml index 53c28a559..3f76eff0c 100755 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/.content.xml +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/.content.xml @@ -1,10 +1,9 @@ - + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/_cq_htmlTag/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/_cq_htmlTag/.content.xml index a38c3bebe..12edb08ac 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/_cq_htmlTag/.content.xml +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/_cq_htmlTag/.content.xml @@ -1,5 +1,4 @@ - + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/par.html b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/par.html new file mode 100644 index 000000000..3832c95d6 --- /dev/null +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/container/par.html @@ -0,0 +1,4 @@ + diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/.content.xml index e1f152103..00f22a2a8 100755 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/.content.xml +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/.content.xml @@ -1,8 +1,8 @@ + cq:icon="mBox" + cq:isContainer="{Boolean}true" + jcr:description="Primary block for content" + jcr:primaryType="cq:Component" + jcr:title="Content Block (v2)" + componentGroup="hidden"/> diff --git a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/_cq_design_dialog/.content.xml b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/_cq_design_dialog/.content.xml index 88525d35f..cb6fc4b90 100644 --- a/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/_cq_design_dialog/.content.xml +++ b/aemdesign-aem-common/src/main/content/jcr_root/apps/aemdesign/components/layout/contentblock/v2/contentblock/_cq_design_dialog/.content.xml @@ -1,10 +1,8 @@ - + @@ -13,7 +11,6 @@ jcr:primaryType="nt:unstructured" sling:resourceType="granite/ui/components/coral/foundation/accordion"> - + resourceType="granite/ui/components/coral/foundation/container"/> - - + resourceType="granite/ui/components/coral/foundation/container"/> - - + resourceType="granite/ui/components/coral/foundation/container"/> - + resourceType="granite/ui/components/coral/foundation/container"/> - - + resourceType="granite/ui/components/coral/foundation/form/fieldset"/> - - + resourceType="granite/ui/components/coral/foundation/form/fieldset"/> -