Delete empty tab nodes of page properties

Avatar

Avatar

arturl43391132

Avatar

arturl43391132

arturl43391132

11-05-2020

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. 



node page properties

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

jbrar

Employee

Avatar

jbrar

Employee

jbrar
Employee

11-05-2020

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...

Answers (1)

Answers (1)

Avatar

Avatar

Veena_Vikram

MVP

Avatar

Veena_Vikram

MVP

Veena_Vikram
MVP

11-05-2020

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.