Add fields to all page types

Jack Neary asked on April 5, 2016 11:22

Hello,

I'm looking for the easiest way to ensure some fields are available in the "Form" tab for all documents in the tree, regardless of page type.

Is there away of doing this without having to register the fields with every page type? Or possibly an easy way to export a category & it's fields for import into other page types?

Thanks,
Jack

Correct Answer

Brenden Kehren answered on April 5, 2016 14:21

You can make this change to inherit fields from a parent type on the fly after the page type is already created. And no, there is no form of import or export which will allow you to just add those fields without overwriting the whole page type and all of the child objects.

3 votesVote for this answer Unmark Correct answer

Recent Answers


David te Kloese answered on April 5, 2016 14:03 (last edited on April 5, 2016 17:30)

Hi,

If you haven't created the page types yet you could use the Inherit fields from page type feature:

txt

and select some sort of 'Base type'.

Greets,

David

3 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 5, 2016 14:08

The best way to do this is to create a "parent" page type with the fields you want replicated across all the other page types. Then in each of the child page types set the Inherits fields from page type field to the parent page type you just created. This should accomplish what you're looking for.

2 votesVote for this answer Mark as a Correct answer

Jack Neary answered on April 5, 2016 14:13 (last edited on April 5, 2016 14:16)

Hi both,

Thanks for your responses

Unfortunately this is to go onto a site already in production, all the page types already exist with many nodes utilizing them already, so as David said, I'm not sure that solution would work for us.

Similarly from an on going maintenance perspective, is there no form of import/export feature? Say I had created the fields from a base type, but I then wanted to add a single additional field at a later date? Is there anyway I could add it to the base, and it be distributed across all the types that inherited from it when they were created?

Thanks again for your time,
Jack

0 votesVote for this answer Mark as a Correct answer

Jack Neary answered on April 5, 2016 14:23

Hi Brenden,

Thanks again for your prompt response, I will give the below a go and let you know how it goes.

You can make this change to inherit fields from a parent type on the fly after the page type is already created.

Thanks again,
Jack

0 votesVote for this answer Mark as a Correct answer

Jack Neary answered on April 5, 2016 14:33

Hi Brenden,

That looks to be perfect thank you :)

0 votesVote for this answer Mark as a Correct answer

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