Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

InheritedProperty using HTL JavaScript Use API

Avatar

Employee Advisor

Can anyone please point me to the correct syntax to get InheritedProperty using HTL JavaScript Use API?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Found the correct syntax below

use strict";
use( function() {
    var data = {};
    data.id = inheritedPageProperties.get("id", String.class) || "";
  
    return data;
});