Skip to content

Commit

Permalink
clarify explanations under from and to fields, set default dropdown t…
Browse files Browse the repository at this point in the history
…o Vanity
  • Loading branch information
Ben Dubuisson committed Feb 12, 2016
1 parent aa65914 commit 3135aaa
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions code/RedirectUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,18 @@ public function getCMSFields()
{
$fields = new FieldList();

$from = new TextField('From', 'From');
$from->setRightTitle('(e.g "/my-page/")- always include the /');
$to = new TextField('To', 'To');
$to->setRightTitle('e.g "/my-page/" for internal pages or "http://google.com/" for external websites (and include the scheme - http:// or https://)');

$fields->push($manual = new ToggleCompositeField(
'TextLinks',
'Enter urls',
[
new TextField('From', 'From url (e.g. "/my-page/")'),
new TextField('To', 'To url (e.g. "/my-page/", "http://google.com/")')
$from,
$to

]
));

Expand All @@ -89,8 +95,9 @@ public function getCMSFields()
'Type',
'Type',
[
'Permanent' => 'Permanent',
'Vanity' => 'Vanity'
'Vanity' => 'Vanity',
'Permanent' => 'Permanent'

]
));

Expand Down

0 comments on commit 3135aaa

Please sign in to comment.