Developer Needs to remove the pretitle option from within the core Teaser components dialogs. They started by following | Community
Skip to main content
JakeCham
Level 6
January 3, 2024
Solved

Developer Needs to remove the pretitle option from within the core Teaser components dialogs. They started by following

  • January 3, 2024
  • 2 replies
  • 938 views

creating a component with core Teaser component as Its resourceSuperType adding a cq dialog folder under the component 

What are the next correct steps that the AEM developer needs to take ?

 

a. Navigate to the new components dialog in CRX.

    Delete the pretitle child node.

 

b. Navigate to the /apps/core/wcm/components/teaser/v1/teaser/cq:dialog/content/items/tabs/items/text/items/columns/items/column/items in CRX

 

c. create a file named dialog.xml inside that new folder

    copy the entire node structure from the Core Teaser components dialog xml

    Delete the pretitle node.

 

d.

Create a file named .content.xml inside new folder.

Copy only the node structure that will be modified into .content.xml

Add sling.hideChildren[pretitle] to the parent node of the pretitle node

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by aanchal-sikka

@jakecham 

 

d. Create a file named .content.xml inside new folder.

Copy only the node structure that will be modified into .content.xml

Add sling.hideChildren[pretitle] to the parent node of the pretitle node

2 replies

Level 4
January 3, 2024

Please follow the below steps:

a. Navigate to the new component's dialog in CRX.

d. Create a file named .content.xml inside the new folder.

c. Copy the entire node structure from the Core Teaser component's dialog xml

b. Navigate to the /apps/core/wcm/components/teaser/v1/teaser/cq:dialog/content/items/tabs/items/text/items/columns/items/column/items in CRX

d. Delete the pretitle child node.

d. Add sling:hideChildren=[pretitle] to the parent node of the pretitle node.

Now, your custom component hides the "pretitle" field from the Core Teaser dialog, but inherits all other dialog properties.

July 16, 2024

Hi I have this issue too and this solution doesn't work.

aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
January 3, 2024

@jakecham 

 

d. Create a file named .content.xml inside new folder.

Copy only the node structure that will be modified into .content.xml

Add sling.hideChildren[pretitle] to the parent node of the pretitle node

Aanchal Sikka