Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[5.x] Multi site config help text #9986

Merged
merged 2 commits into from
May 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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