TITLE Component Modification | Community
Skip to main content
October 3, 2018
Solved

TITLE Component Modification

  • October 3, 2018
  • 1 reply
  • 918 views

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,

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 arunpatidar

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
October 3, 2018

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