Goal:
Add one more menu for the http://localhost:4502/projects.html
New in AEM(CQ) 6.1 is Sling Resource Merger. With resource merger you overlay the path in /apps and add only new nav items (in this case, Users)
1) Create the following folders in CRXDE Lite (http://localhost:4502/crx/de) or use the overlay creator servlet discussed here
/apps/cq - nt:folder
/apps/cq/core - nt:folder
/apps/cq/core/content - sling:OrderedFolder
/apps/cq/core/content/nav - nt:unstructured
The structure above is an overlay of /libs/cq/core/content/nav
2) Create node /apps/cq/core/content/nav/onemkhomepage of type nt:unstructured with the following properties
id - onemk-homepage-link
href - /content/geometrixx-sightly/English.html
jcr:description - Open Home Page
jcr:title - OneMk HomePage
All properties are self-explanatory. Property id is to uniquely identify the nav item.
Add one more menu for the http://localhost:4502/projects.html
New in AEM(CQ) 6.1 is Sling Resource Merger. With resource merger you overlay the path in /apps and add only new nav items (in this case, Users)
1) Create the following folders in CRXDE Lite (http://localhost:4502/crx/de) or use the overlay creator servlet discussed here
/apps/cq - nt:folder
/apps/cq/core - nt:folder
/apps/cq/core/content - sling:OrderedFolder
/apps/cq/core/content/nav - nt:unstructured
The structure above is an overlay of /libs/cq/core/content/nav
2) Create node /apps/cq/core/content/nav/onemkhomepage of type nt:unstructured with the following properties
id - onemk-homepage-link
href - /content/geometrixx-sightly/English.html
jcr:description - Open Home Page
jcr:title - OneMk HomePage
All properties are self-explanatory. Property id is to uniquely identify the nav item.
No comments:
Post a Comment