Skip to content

Commit

Permalink
[5.x] Multi site config help text (#9986)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackmcdade authored May 2, 2024
1 parent 1ae7911 commit fce280c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
6 changes: 6 additions & 0 deletions resources/lang/en/messages.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,12 @@
'session_expiry_logging_out_in_seconds' => 'You have been inactive for a while and will be logged out in :seconds seconds. Click to extend your session.',
'session_expiry_new_window' => 'Opens in a new window. Come back once you\'ve logged in.',
'show_slugs_instructions' => 'Whether to display slugs in the tree view.',
'site_configure_attributes_instructions' => 'Add arbitrary attributes to your site\'s config which can be accessed in your templates. [Learn more](https://statamic.dev/multi-site#additional-attributes).',
'site_configure_handle_instructions' => 'A unique reference to this site. Non-trivial to change later.',
'site_configure_lang_instructions' => 'Learn about [Languages](https://statamic.dev/multi-site#language).',
'site_configure_locale_instructions' => 'Learn about [Locales](https://statamic.dev/multi-site#locale).',
'site_configure_name_instructions' => 'User-facing name shown throughout the control panel.',
'site_configure_url_instructions' => 'Learn about [Site URLs](https://statamic.dev/multi-site#urlhttps://statamic.dev/multi-site#url).',
'status_expired_with_date' => 'Expired on :date',
'status_published_with_date' => 'Published on :date',
'status_scheduled_with_date' => 'Scheduled to be published on :date',
Expand Down
13 changes: 11 additions & 2 deletions src/Sites/Sites.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ public function blueprint()
'handle' => 'name',
'field' => [
'type' => 'text',
'instructions' => __('statamic::messages.site_configure_name_instructions'),
'required' => true,
'width' => 50,
],
Expand All @@ -158,6 +159,7 @@ public function blueprint()
'type' => 'slug',
'separator' => '_',
'generate' => true,
'instructions' => __('statamic::messages.site_configure_handle_instructions'),
'show_regenerate' => true,
'from' => 'name',
'required' => true,
Expand All @@ -168,28 +170,35 @@ public function blueprint()
'handle' => 'url',
'field' => [
'type' => 'text',
'instructions' => __('statamic::messages.site_configure_url_instructions'),
'required' => true,
'width' => 33,
],
],
[
'handle' => 'locale',
'field' => [
'type' => 'text',
'instructions' => __('statamic::messages.site_configure_locale_instructions'),
'required' => true,
'width' => 50,
'width' => 33,
],
],
[
'handle' => 'lang',
'field' => [
'type' => 'text',
'width' => 50,
'instructions' => __('statamic::messages.site_configure_lang_instructions'),
'width' => 33,
],
],
[
'handle' => 'attributes',
'field' => [
'display' => __('Custom Attributes'),
'instructions' => __('statamic::messages.site_configure_attributes_instructions'),
'type' => 'array',
'add_button' => __('Add Attribute'),
],
],
];
Expand Down

0 comments on commit fce280c

Please sign in to comment.