Do you know AEM? It is a content management tool used by Java application development India teams to create websites, apps, and mobile platforms. In this post, the team will make you learn about the steps to create a page using template in AEM.
AEM(Adobe CQ5), stand for Adobe Experience Manager. It is a Content Management Tool which is used to create a websites, mobile platforms, and apps. It is easy to manage content and assets of you website with AEM. It is a large scale web content management system that is currently available in Adobe System. Server of AEM is platform independent as it is based on java technology.
We can create a template in AEM which will be useful for creating pages for website. A Template is used to create a page for website and define which components can be used within the define selected scope. A template is a hierarchy of nodes that has the same structure as the page to be created but without any actual content.
[quote]See Also: How Dependency Injection (DI) Works In Spring Java Application Development[/quote]
There are 5 steps to create the page:
- Start the AEM Server.
- Open crxde lite in server.
- Create the template.
- Create a page component
- Create a page using that template.
- Activate the page.
Step1: Start AEM Server:
To start AEM server double click on the jar file.
Once AEM started, it look like below
Once the server started, by default a window will open in browser with the urllocalhost:4502
Provide the credentials,
Username: admin, password: admin
Once you successfully login, the below screen will come up.
Step2: Open CRXDE lite .
Click on Tools,
If user clicks on Add Image button , a pop up dialog will open to select the image…
The code snippet to select the image will be below:
If you observe user has the possibility to filter the images based on the type like jpg, .bmp, .gif etc.
FileDialog is framework class to deal with file related stuff.
Step2: How to Open CRXDE Lite
Click on Tools,
Then click on CRXDE Lite,
CRXDE Lite Console,
Step 3: Create a Template
To create a template, Right click on template folder and select the option create template
Then provide the template information like label, title, description, resourceType(mandatory) etc
Step 4: Create a Page Component
To create a component, right click on component folder and select the create component.
Provide the component(firstcompoent) information like title, label, description(mandatory). resourceSuperType not mandatory.
With component you will get a jsp file with component name firstcomponent.jsp. open the jsp file and write the script whatever you want to show it on page. In this example, we are writing a simple hello message.
Step 5 : Create a page using template
Open siteadmin, with urllocalhost:4502/siteadmin
Click on new,
Select title firstpage and select the templageFirstTemplate
Step 6: Activate a page
Right click on page and choose the option activate,
You now know the basics of AEM. Hope java application development India team has made you understand about the process of creating a page using template in AEM. Still if you feel confuse about any part of the post, ask the team.Tags: AEM, AEM with Java, Java, java application development