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.
OK, so I know how to set a default value for a variable in newly created pages using:
public static $defaults = array(
'SomeVariable' => true
But how would I do that for existing pages, so *after* they are created, in an existing site for instance? Just set the value manually in the database? (I mean for many pages at once...)
Change the code an run [site-url]/dev/build.
Hmm, no, that does not set all existing pages' "SomeVariable" to true, unfortunately...
I think you're best off with changing the value manually in the database.
Yeah, I guessed so... thanks though.