Expand my Community achievements bar.

SOLVED

Delete empty tab nodes of page properties

Avatar

Level 4

Hello, Adobe Community,

We have one of custom tab included in page properties with some properties:

arturl43391132_0-1589185191412.png

As we can see, all properties are empty on the screen but nodes in crx still exist:

arturl43391132_1-1589185323472.png

m4w node - all properties which are located under tab "Web feed settings"
ads node - fieldset with properties under under tab "Web feed settings"

Properties have names like "./m4w/something" and "./m4w/ads/something".

Is there any beautiful way to delete nodes if all properties under some tab are empty or node doesn't have properties?
I tried typehints like "@Delete", but they did't help. And the problem is also that then we click "save & close" button on page properties page, it seems that it saves these nodes anyway.

Thanks. 



1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

You can look into Granite hide conditions[1] to hide properties based on some conditions.

 

[1] https://docs.adobe.com/content/help/en/experience-manager-65/developing/components/hide-conditions.h...

View solution in original post

2 Replies

Avatar

Correct answer by
Employee Advisor

You can look into Granite hide conditions[1] to hide properties based on some conditions.

 

[1] https://docs.adobe.com/content/help/en/experience-manager-65/developing/components/hide-conditions.h...

Avatar

Community Advisor

Do you have any hidden properties in this tabs ? I was wondering why this is getting created in the first place when you have not authored anything yet. This can happen only if you have authored it once , and then it was left empty. So when the first time you authored , the nodes might have got created.