Skip to content

Commit

Permalink
add URLSegment to seo extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Mc Cormack committed Oct 27, 2017
1 parent f8555d3 commit f662295
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Model/Extension/SeoExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class SeoExtension extends SeoPageExtension
**/
private static $db = [
'Title' => 'Varchar(512)',
'URLSegment' => 'Varchar(512)',
'MetaDescription' => 'Varchar(512)'
];

Expand All @@ -35,6 +36,7 @@ public function updateCMSFields(FieldList $fields)
$fields = parent::updateCMSFields($fields);

$fields->addFieldToTab('Root.Main', TextField::create('Title'));
$fields->addFieldToTab('Root.Main', TextField::create('URLSegment'));

return $fields;
}
Expand Down

0 comments on commit f662295

Please sign in to comment.