Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
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;
});