Skip to content

Commit

Permalink
make this a bit clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
duncanmcclean committed Feb 13, 2024
1 parent 2dc7774 commit e38eedb
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Http/Controllers/CP/Collections/CollectionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -288,14 +288,16 @@ protected function createLinkBlueprint($namespace)
'title' => __('Link'),
'fields' => [
['handle' => 'title', 'field' => ['type' => 'text']],
['handle' => 'redirect', 'field' => [
'type' => 'group', 'required' => true, 'width' => '100',
'fields' => [
['handle' => 'url', 'field' => ['type' => 'link', 'required' => true, 'width' => '100', 'display' => __('URL')]],
['handle' => 'status', 'field' => ['type' => 'radio', 'inline' => 'true', 'required' => true, 'options' => [301 => __('301 (Permanent)'), 302 => __('302 (Temporary)')], 'width' => '100', 'display' => __('Redirect HTTP Status')]],
[
'handle' => 'redirect',
'field' => [
'type' => 'group', 'required' => true, 'width' => '100',
'fields' => [
['handle' => 'url', 'field' => ['type' => 'link', 'required' => true, 'width' => '100', 'display' => __('URL')]],
['handle' => 'status', 'field' => ['type' => 'radio', 'inline' => 'true', 'required' => true, 'options' => [301 => __('301 (Permanent)'), 302 => __('302 (Temporary)')], 'width' => '100', 'display' => __('Redirect HTTP Status')]],
],
],
],
],
],
])
->save();
Expand Down

0 comments on commit e38eedb

Please sign in to comment.