Sunday 29 April 2018

Querying Adobe Experience Manager 6.4 JCR data

You can create an Adobe Experience Manager (AEM) 6.4 HTL component that queries data located in the AEM Java Content Repository (JCR). To query data, you use a javax.jcr.query.Query instance that belongs to the JCR Query API. This API supports both searching and querying operations. For example, assume that your AEM application tracks your organization’s customers. You can query the JCR to obtain a customer result set in which a digital marketer is interested.

In AEM 6.4, you get a session instance (required to work with the JCR API) by using a Sling method named getServiceResourceResolver().  The following code shows use of the more secure getServiceResourceResolver API call.

Map<String, Object> param = new HashMap<String, Object>();
param.put(ResourceResolverFactory.SUBSERVICE, "datawrite");
ResourceResolver resolver = null;

try {
           
    //Invoke the adaptTo method to create a Session used to create a QueryManager
 resolver = resolverFactory.getServiceResourceResolver(param);
    session = resolver.adaptTo(Session.class);

This article creates the following AEM HTL component that displays data queried from the AEM JCR.




To read this development article, click   https://helpx.adobe.com/experience-manager/using/querying-experience-manager-64.html.

Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Thursday 26 April 2018

Creating an Adobe Experience Manager 6.4 HTL Component that displays data from a Restful Web Service

You can create an Adobe Experience Manager 6.4 HTML Template Language (HTL) component that displays data retrieved from a third-party Restful web service. For example, assume you want to display a country name based on its 2 character alphanumeric ISO code. In this situation, you can develop an Experience Manager HTL component that displays this data, as shown in this illustration.


To read this Experience Manager 6.4 article, click https://helpx.adobe.com/experience-manager/using/restful_aem64.html.

Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Wednesday 25 April 2018

Performing Sling Model Adaptation Using Request and Resource Objects

There are use cases where you may need to get a Request object inside a Sling Model or you want to adapt your Sling Model using a SlingHttpServletRequest object (where you don’t want to create a resource object). In this situation, you do not need to create two different Sling Models. In this development article, you learn how to write your Sling Model, make it adaptable by using either a SlingHttpServletRequest or Resource (or both the objects), and inject Resource properties at the same time.



Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Tuesday 17 April 2018

Creating an Adobe Experience Manager 6.4 Project using Adobe Maven Archetype 13

You can create an AEM 6.4 project by using Adobe Maven Archetype 13. This development article walks you through creating an AEM 6.4 project by using Archetype 13 and explains the default AEM files and services. Using an Archetype 13 project, you are given a set of files to start with.

2 Pages

  • English and French pages with filler text

2 Templates

  • For homepage and content pages
  • Homepages are only allowed on top level, and content pages below
  • Built with HTL templates and simple server-side JavaScript logic

Example Components

  • helloworld: example of custom HTL component with SlingModels for the logic 
  • Core components - use of Core Components like text and image, and title 

Java examples
  • Models: Models for more complex business logic of components
  • Servlets: Rendering the output of specific requests
  • Filters: Applied to the requests before dispatching to the servlet or script
  • Schedulers: Cron-job like tasks

The following illustration represents a default AEM page that is created by the Archetype 13 project.



Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Wednesday 11 April 2018

April 2018: Ask the AEM Community Expert: Easy Access to Critical Information: Content Reports in AEM

As a content manager, you need data to manage the content development and maintenance process. This includes using Analytics to understand content effectiveness, identify stale content, measure productivity of content writers, and manage content translations. Perficient Digital contributed a new feature, Report Builder, to ACS AEM Commons. Learn how Report Builder allows Adobe Experience Manager administrators to create and execute reports on the content in Experience Manager, and how it helps content managers and administrators get their data with flexible, configurable reports.



Date: Tuesday, 24th April 2018

Time: 8:00 am PDT | 11:00 am EST | 8:30 pm IST

Duration: 60 Minutes

Playback at : https://helpx.adobe.com/experience-manager/kt/eseminars/ask-the-expert/aem-content-reports.html


Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel. 

Tuesday 3 April 2018

Creating an Adobe Experience Manager 6.4 website using Editable Templates

In this Adobe Experience Manager 6.4 article, you create an Experience Manager site that contains a header section, a body section (in this article, the leadarticles component is used), and a footer section. In addition, you are going to learn how to promote reuse of Experience Manager content by:

  • Leveraging Editable Template Structures
  • Making use of core components
  • Understanding Template and Content Policies  


The following illustration shows the site that is created by following this article. 


The Experience Manager site created in this article uses editable templates, as shown in this illustration. 


The following list describes Editable Templates:

  • Can be created and edited by your authors.
  • Have been introduced to allow you to define the following for any pages created with the template: the structure,  the initial content, content policies
  • After the new page is created a dynamic connection is maintained between the page and the template; this means that changes to the template structure will be reflected on any pages created with that template (changes to the initial content will not be reflected).
  • Uses content policies (edited from the template editor) to persist the design properties (does not use Design mode within the page editor).
  • Are stored under /conf



Join the Experience League

To become an Experience Business, you need more than just great tools and online help. You need a partner. Experience League is a new enablement program with guided learning to help you get the most out of Adobe Experience Cloud. With training materials, one-to-one expert support, and a thriving community of fellow professionals, Experience League is a comprehensive program designed to help you become your best.

Join the Adobe Experience League by clicking this banner.




I (Scott Macdonald) am a Senior Experience League Community Manager at Adobe Systems with 20 years in the high tech industry. I am also a programmer with knowledge in Java, JavaScript, C#,C++, HTML, XML and ActionScript. If  you would like to see more AEM or other end to end articles like this, then leave a comment and let me know what content you would like to see.

Linked In: http://www.linkedin.com/in/scottmacdonald2010

YouTube: Subscribe to the AEM Community Channel.