Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Accessing screens display properties in custom component


Level 5

Can we access screens display properties in my custom component using slightly?




components are in channels so they are separately


How can i access that area? Thanks.

AEM 6.4.4

0 Replies


Community Advisor

you can access any resource and there properties in sightly using JS use API or Java sling Model.


@Model(adaptables = { Resource.class, SlingHttpServletRequest.class })

public class ImageMetadataModel {



private String screenPath;


private ResourceResolver resourceResolver;

public String getProperty () {

Resource resource = resourceResolver.getResource(screenPath);

String property = “”;

if (resource != null) {

Page page = resource.adaptTo(Page.class);

property = page.getTitle();


return property;




Level 5

Thanks Arun for taking your time to reply.

I know I can access jcr properties thru JCR API. But what I am trying to solve is access screens location properties thru custom component.

     - create custom component.(should display location property)

     - add component in sequence-channel.

     - assign sequence-channel to a screens location display.

     - get the location properties thru custom component.(must be dynamic since the custom component can be assigned in any location display.)

Hope I made my self understandable. If not Please tell me.


Level 5

In other words. I'm trying to know the location in which my custom component is added.