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
BedrockMission!

Learn More

View all

Sign in to view all badges

Editable Template Is taking Current Design as /etc/design/default

Avatar

Avatar
Ignite 1
Level 1
rohanr43729387
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Ignite 1
Boost 1
Affirm 1
View profile

Avatar
Ignite 1
Level 1
rohanr43729387
Level 1

Like

1 like

Total Posts

6 posts

Correct Reply

1 solution
Top badges earned
Ignite 1
Boost 1
Affirm 1
View profile
rohanr43729387
Level 1

08-07-2020

I am trying to set some Clientlibs via the design dialog of the template but its not picking the property. When I further tried to look into PageImpl of the Core bundle found that its reading from currentDesign 

 

protected void addPolicyClientLibs(List<String> categories) {
        if (currentStyle != null) {
            Collections.addAll(categories, currentStyle.get(PN_CLIENTLIBS, ArrayUtils.EMPTY_STRING_ARRAY));
        }
    }
clientLibCategoriesJsHead = currentStyle.get(PN_CLIENTLIBS_JS_HEAD, ArrayUtils.EMPTY_STRING_ARRAY);

 

 I tried printing on page currentDesign.path() and its results in /etc/designs/default 

I am not sure how we can take this from the policies. Is there something we need to do in order to get the clientlibs from the policy node?

 

I can see the policy node having the property clientlibs and clientlibsJsHead , but I believe it's not being picked as the currentDesign is still pointing to defalt design in /etc. And if I delete /etc/designs/default its picking /libs/settings/wcm/designs/default instead of picking from /conf/<project>/setting...policy