Custom field in Page metadata

Ashish Kashyap asked on April 13, 2021 13:34

I need to create a new custom field Under pages-> metadata for unloading an image. I have checked the custom module and settings but did not found anything.

My requirement is to create a custom field to add an image for the social sharing of a page.

Recent Answers


Dmitry Bastron answered on April 13, 2021 16:31

Hi Ashish,

I'm afraid currently it is not possible. For such cases when we need to introduce this kind of "shared" fields for all pages we typically do the following:

  • Introduce Base page type and inherit all page types from it
  • In base page type you can add a few extra metadata fields

One thing is, these fields will appear only on Content tab, not on metadata tab.

1 votesVote for this answer Mark as a Correct answer

Juraj Ondrus answered on April 14, 2021 14:24

Why don't you add simply a field to the page type(s) which will be used for the image and then use this field as the source in your code/macro/transformation? Or, if you want to have all the meta data fields in one place, add the system fields to the page type(s) + your custom field, e.g. into some category and have the editors editing the fields on the Form/Content tab. Sample screen shot 1; screen shot 2

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.