Expand my Community achievements bar.

SOLVED

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

Avatar

Level 7

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

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

@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

View solution in original post

3 Replies

Avatar

Level 4

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.

Avatar

Level 1

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

Avatar

Correct answer by
Community Advisor

@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