Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Extend Core-Components(Page Component)

Avatar

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
mb36960082
Level 1

02-04-2018

Hi,

I am able to extend the core-comopnent's title component but when i try to do the same for core page component, it doesn't work.

Here's my structure in the below screenshot, i just copied the structure from core page component's dialog. I am using AEM 6.3 and core-components 2.04.

Can someone help me with this? TIA!

Screen Shot 2018-04-02 at 1.08.36 PM.png

Replies

Avatar

Avatar
Validate 1
Level 3
Julio_Tobar
Level 3

Likes

17 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
Julio_Tobar
Level 3

Likes

17 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Julio_Tobar
Level 3

02-04-2018

It looks to me like you're trying to "copy and paste" the core components which is not a best practice. You see, when working with core-components we're expected to follow "proxy pattern" which essentially means we need to extend (sling:resourceSuperType) the core component.

If for some reason you still need to "copy and paste"  a core component then make sure you provide your own properties for the component such as: component group, inherit from proper components (sling:resourceSupertType).

Regards,

Avatar

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
mb36960082
Level 1

02-04-2018

I am following the proxy pattern. I am using sling:resourceSuperType: core/wcm/components/page/v2/page for my page-test-1 component.

Then i am trying to change title label for my testing and it doesn't change. I am doing the exact same thing for core title component and i am able to modify the title component's dialog fields.

Avatar

Avatar
Validate 1
Level 3
Julio_Tobar
Level 3

Likes

17 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
Julio_Tobar
Level 3

Likes

17 likes

Total Posts

25 posts

Correct Reply

5 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Julio_Tobar
Level 3

02-04-2018

Ok, so it loooks like you're doing it the right way....

I see you are following "Sling Merger" for providing your custom "field label" to your "page component"; by looking at the image it seems like you created the right structure for the field but maybe we need to double check. Here's what I would:

1) copy paste the whole dialog from core component into custom component. This is to make sure we do not have structure issues

2) Make sure you select proper component when creating the "editable template" (maybe you are still selecting a previous version of the component for which you have not updated dialog)

Avatar

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
mb36960082
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
View profile
mb36960082
Level 1

03-04-2018

Thanks Julio for the reply.

I did copy paste the dialog from core page component and the template is also using the correct versioned component.

The only difference i see from title and page component is, basicpage component in libs is using mnt/overlay for the tabs.

Does anyone have issues with extending if the super type component uses mnt/overlay?

Avatar

Avatar
Boost 1
Level 1
sandrateixeira
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile

Avatar
Boost 1
Level 1
sandrateixeira
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
View profile
sandrateixeira
Level 1

17-04-2018

Hello,

Did you find the solution for this issue?

I'm facing the same situation here.