-
-
Save Liongold/eda3a016778fc1bc0ab0 to your computer and use it in GitHub Desktop.
A part of the implementation of Redirect in new tab feature in SilverStripe (code change)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class RedirectorInNewTab extends DataExtension { | |
private static $db = array( | |
"OpenInNewTab" => "Boolean" | |
); | |
public function updateCMSFields(FieldList $fields) { | |
$fields->addFieldToTab("Root.Main", new CheckboxField("OpenInNewTab", "Open in new tab")); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment