public static $db = array(
'TrackingName' => 'HTMLText'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Main", new TextField('TrackingName','Tracking Code Name'));
---
How do I get this value from the database for the page I am on, and pass it to a javascript var? Maybe metadata
var trackingname = $TrackingName (I know this isn't right - this idea)