Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Data Model Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Extending Page - default values


Go to End


1448 Views

Avatar
Jarek

Community Member, 30 Posts

6 September 2011 at 2:18am

Hello,

I've have some pages and I want to add to them some extra fields (with default values). So I'm adding new fields in Page class and now in cms those fields are visible. But if I want set default values for all existing pages, I have to edit each page, set field value and save (cms will set value and create missing Page_Live record). Is is possible to automatically generate Page_Live records for all already existing pages (filling them with default values)?