21280 Posts in 5729 Topics by 2600 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 790 Views |
-
Default /dev/build/ behaviour

30 October 2009 at 3:37am
Hi all,
By default, the first time you run /dev/build/, if you are starting with an empty database, default tables are generated, with dummy content.
These are something like:
Home
About us
ContactI have been wondering if it is possible to alter this behavior so that different pages would be created?
Cheers,
Mo
-
Re: Default /dev/build/ behaviour

30 October 2009 at 7:00am
Yes, when build is called it will invoke requireDefaultRecords(). You can override or create this to do stuff with your own models or prevent existing ones from creating those.
See Ecom for an example:
http://svn.silverstripe.com/open/modules/ecommerce/trunk/code/products/Product.php -
Re: Default /dev/build/ behaviour

30 October 2009 at 10:16am
AWESOME!! This will make my life so much easier!
Cheers
.
Mo
| 790 Views | ||
|
Page:
1
|
Go to Top |


