Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ImageRotaterTile extends Tile {
- static $many_many = array(
- "Images" => "Image"
- );
- public function getCMSFields() {
- $fields = parent::getCMSFields();
- $fields->removeByName("BackgroundImage");
- $fields->add(new UploadField("Images", "Scroll Between Images", $this->Images()));
- return $fields;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement