String copyright_path = g_content_country_locale_url+"/jcr:content/footer/footer-copyright";
Resource resources = resourceResolver.getResource(copyright_path);
Node rootNode = resources.adaptTo(Node.class);
String footer_copyright = rootNode.getProperty("text").getString();
--- Result -----------------------------------------------------------------
<!-- copyright_path : /content/genesis/global/en/jcr:content/footer/footer-copyright -->
<!-- resources : JcrNodeResource, type=genesis/global/components/footer/footer-copyright, superType=null, path=/content/genesis/global/en/jcr:content/footer/footer-copyright -->
<!-- rootNode : Node[NodeDelegate{tree=/content/genesis/global/en/jcr:content/footer/footer-copyright: { jcr:primaryType = nt:unstructured, jcr:mixinTypes = [cq:ReplicationStatus], jcr:lastModifiedBy = 9267053, text = COPYRIGHT 2016 GENESIS MOTOR COMPANY ALL RIGHTS RESERVED., jcr:lastModified = 2016-10-21T14:20:59.322+09:00, sling:resourceType = genesis/global/components/footer/footer-copyright}}] -->
<!-- footer_copyright : COPYRIGHT 2016 GENESIS MOTOR COMPANY ALL RIGHTS RESERVED. -->
PageManager
https://docs.adobe.com/docs/en/cq/5-6-1/javadoc/com/day/cq/wcm/api/PageManager.html
Content using the JCR API
https://helpx.adobe.com/experience-manager/using/programmatically-accessing-cq-content-using.html
'Develop > AEM' 카테고리의 다른 글
FEW CQ5 (AEM) Interview questions for references (0) | 2016.11.09 |
---|---|
AEM 6.x Server Setting (0) | 2016.11.09 |
CQ/AEM Best Practices (0) | 2016.10.26 |
어플리케이션/프로젝트는 무엇입니까? (0) | 2016.10.24 |
Adobe EXPERIENCE MANAGEMENT CQ Developer Tricks (0) | 2016.10.24 |