5093 Posts in 1516 Topics by 1113 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 631 Views |
-
How to set a default variable for existing pages?

12 February 2010 at 1:42am Last edited: 12 February 2010 2:09am
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...)
-
Re: How to set a default variable for existing pages?

15 February 2010 at 12:34pm
Change the code an run [site-url]/dev/build.
-
Re: How to set a default variable for existing pages?

15 February 2010 at 2:41pm
Hmm, no, that does not set all existing pages' "SomeVariable" to true, unfortunately...
-
Re: How to set a default variable for existing pages?

15 February 2010 at 7:32pm
I think you're best off with changing the value manually in the database.
-
Re: How to set a default variable for existing pages?

16 February 2010 at 1:11pm
Yeah, I guessed so... thanks though.
| 631 Views | ||
|
Page:
1
|
Go to Top |



