I have a default value set in $db array to "1". For ex :
class Page extends SiteTree {
public static $defaults = array(
"Indexing" => "1"
);
}
This works fine and sets the default value very nicely. Now I have a different page type say for example :
class mypage extends page{
// Since this class extends page so it will take the default
// value "Indexing" => "1" ..
}
I want to set the default value "Indexing" => "0" in the "mypage" page type. How can I achieve that.
I have tried the following :
class mypage extends page{
public static $defaults = array(
"Indexing" => "0"
);
}
This does not work as the parent default value is set. Any help would be deeply appreciated. Thanks.