Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class PagesWidget extends Widget
- {
- private static $title = "";
- private static $cmsTitle = "Pages Widget";
- private static $description = "Add links to other pages";
- private static $has_one = array(
- 'Page' => 'Page'
- );
- public function getCMSFields() {
- return new FieldList(
- new TreeDropdownField("Page", "Page to link to")
- );
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement