Expand my Community achievements bar.

SOLVED

How do you edit text fields in the advanced tab of the page properties?

Avatar

Level 1

How do you edit text fields in the advanced tab of the page properties?

 

I am attempting to remove the "canonical URL" text field from the advanced tab. However there isn't content.xml to edit. How do you access these fields? 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Your page (component) is inherited from a parent component which actually has the properties you are looking for. You can take advantage of the Sling ResourceMerges properties to hide the canonical Path, you can learn more about resourcemerge here: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

 

Simply, track which is the parent of your component by checking the property sling:resourceSuperType[1], then copy the cq:dialog into your component and then add the sling sling:hideProperties accordingly as explained in the documentation.

[1].

Esteban666_0-1687373321623.png

In above image, the resourceSupertype is core/wcm/components/page/v3/page  (which points to /apps/core/wcm/components/page/v3/page). And this has a resourceSuperType to /libs/wcm/foundation/components/basicpage/v1/basicpage, here you will find the cq:dialog to copy to your component

 



Esteban Bustamante

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Your page (component) is inherited from a parent component which actually has the properties you are looking for. You can take advantage of the Sling ResourceMerges properties to hide the canonical Path, you can learn more about resourcemerge here: https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/develo...

 

Simply, track which is the parent of your component by checking the property sling:resourceSuperType[1], then copy the cq:dialog into your component and then add the sling sling:hideProperties accordingly as explained in the documentation.

[1].

Esteban666_0-1687373321623.png

In above image, the resourceSupertype is core/wcm/components/page/v3/page  (which points to /apps/core/wcm/components/page/v3/page). And this has a resourceSuperType to /libs/wcm/foundation/components/basicpage/v1/basicpage, here you will find the cq:dialog to copy to your component

 



Esteban Bustamante