silverstripe-subsites/code/extensions/CMSPageAddControllerExtension.php

9 lines
198 B
PHP

<?php
class CMSPageAddControllerExtension extends Extension {
function updatePageOptions(&$fields) {
$fields->push(new HiddenField('SubsiteID', 'SubsiteID', Subsite::currentSubsiteID()));
}
}