Playing with adding properties via CQ's Node API.
Not meant to be used as a production solution but gives some handy concepts.
Playing with adding properties via CQ's Node API.
Not meant to be used as a production solution but gives some handy concepts.
curl -u admin:admin -F rep:password="aem6dev" -F :currentPassword="admin" http://<<<CUT>>>:4502/home/users/a/admin.rw.html |
node_modules |
curl -u admin:admin “http://<<<CUT>>>:7402/author/bin/querybuilder.json?orderby=%40cq%3atime&orderby.sort=desc&p.limit=-1&path=%2fvar%2faudit%2fcom.day.cq.replication%2fcontent%2f01%2fna&property=cq%3atype&property.1_value=Activate&property.2_value=Deactivate&type=cq%3aAuditEvent” > deactivated_pages_qa.txt |
###Description Retrieve a Page Object from all pages which are in the Site root then build a breadcrumb component and display the current pages title in a submenu.
###Use case Display a bar under eg a menu which displays the current pages title and functional breadcrumb components o the right.
##Requirements
curl -u admin:admin | |
'http://<<<CUT>>>:4502/libs/cq/security/authorizables/POST' -d 'status=browser' -d 'email=' -d | |
'familyName=asdf1012' -d 'givenName=asdf1012' -d 'intermediatePath=' -d 'rep:password=bwi123' -d | |
'rep:password=bwi123' -d 'rep:userId=asdf1012' |
curl -u "admin:admin" "http://<<<CUT>>>:4505/crx/browser/delete_recursive.jsp?action=delete&Path=/apps/test/install/apps-src.jar" |
package org.main.test; | |
import javax.jcr.Node; | |
import javax.jcr.NodeIterator; | |
import javax.jcr.Session; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.day.cq.wcm.api.Page; | |
import javax.jcr.query.QueryManager; | |
import javax.jcr.query.Query; | |
import javax.jcr.query.QueryResult; |
<template data-sly-template.sitemap="${ @ page}"> | |
<ul data-sly-list="${page.listChildren}"> | |
<li>${item.title}<span data-sly-call="${sitemap @ page=item}"></span> | |
</li> | |
</ul> | |
</template> | |
<span data-sly-call="${sitemap @ page=currentPage}"></span> |