Let us once again see how a page created using this template looks like.
- Log into to SiteAdmin. (http://localhost:4502/siteadmin)
- Double-click AEM Company page that you created. (If you have not created it, download the package that I provided in the previous session. And, then install it.)
- There is no place where you can drag and drop a component. (If you are not really able to make out that, I suggest you to visit my previous post. You could also open one of the pages from the sample websites to compare.)
- The Component tab doesn’t display any components.
- The template is not associated with any design. (Our page is really blank. It doesn’t have anything like header, footer, and so on.)
- Go to CRXDE Lite. (http://localhost:4504/crx/de)
- Open the template’s rendering script. (/apps/aem-company/components/homepage/body.html)
- Add the following code:
- <div data-sly-resource=”${‘content’ @ resourceType=’wcm/foundation/components/parsys’}”></div>
Now refresh the web page. Notice that now it provides you with a space where you can add components.
I have provided a new package in GitHub. (TemplateWithParsys.zip) Download and use it if you want to.
Summary: Use the parsys component to add space for the addition or deletion of components on a web page. You don’t need to create a parsys component. Always reuse the component that exists.
No comments:
Post a Comment
If you have any doubts or questions, please let us know.