Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

SOLVED

TITLE Component Modification

Avatar

Level 2

HI,

I am trying to modify the Title component, as per my client requirement, i have to keep the Headline & introduction of title components is mandatory for few templates. and not mandatory info page & info page-wide components,

1585772_pastedImage_5.png

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi,

If your page component is different for each templates then you can find out pageResource in js and add validation on dialog submit

Granite.author.pageInfoHelper.json.pageResourceType

If your page component is same for mandatory and non-mandatory templates, the you can check template type using servlet and based on response add validation on dialog submit.

you can find page location in js using Granite.author.pageInfoHelper.json.status.path

Arun Patidar

AEM LinksLinkedIn

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

Hi,

If your page component is different for each templates then you can find out pageResource in js and add validation on dialog submit

Granite.author.pageInfoHelper.json.pageResourceType

If your page component is same for mandatory and non-mandatory templates, the you can check template type using servlet and based on response add validation on dialog submit.

you can find page location in js using Granite.author.pageInfoHelper.json.status.path

Arun Patidar

AEM LinksLinkedIn