Source of file VisualEditorSilverStripeNavigator.php
Size: 1,003 Bytes - Last Modified: 2021-12-23T10:59:17+00:00
/var/www/docs.ssmods.com/process/src/code/form/VisualEditorSilverStripeNavigator.php
1234567891011121314151617181920212223242526272829303132 | <?php /** * Created by PhpStorm. * User: Conrad * Date: 6/07/2016 * Time: 9:14 AM */ class VisualEditorSilverStripeNavigator extends SilverStripeNavigator { public function getItems() { $items = ArrayList::create(); $items->push(ArrayData::create(array( 'Title' => _t('ContentController.DRAFT', 'Draft', 'Used for the Switch between draft and published view mode. Needs to be a short label'), 'Name' => 'StageLink', 'Link' => $this->record->PreviewLink() . '?stage=Stage&page-editor=true', 'isActive' => true ))); $items->push(ArrayData::create(array( 'Title' => _t('ContentController.PUBLISHED', 'Published', 'Used for the Switch between draft and published view mode. Needs to be a short label'), 'Name' => 'LiveLink', 'Link' => $this->record->PreviewLink() . '?stage=Live&page-editor=true', 'isActive' => false ))); return $items; } } |