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.

All other Modules /

Discuss all other Modules here.

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

bugfix: subsites - preventing dev/build from renaming homepages


Go to End


1299 Views

Avatar
MattB

Community Member, 7 Posts

28 April 2011 at 10:31pm

Edited: 28/04/2011 10:33pm

Hi team,

With the Subsites module installed and several subsites present, you'll often find running dev/build marks your '/home' controller pages as 'changed' and sets the top-level URLSegments to home-2, home-3, home-4.

Try this in your _config.php:
SiteTree::set_create_default_pages(FALSE);

See http://open.silverstripe.org/ticket/6251 in TRAC.

Cheers, Matt