Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions resources/js/components/fieldtypes/bard/LinkToolbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ export default {
type: 'entries',
collections: this.collections,
max_items: 1,
select_across_sites: this.config.select_across_sites,
};
},

Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/fieldtypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
'bard.config.section.editor.instructions' => 'Configure the editor\'s appearance and general behavior.',
'bard.config.section.links.instructions' => 'Configure how links are handled in this instance of Bard.',
'bard.config.section.sets.instructions' => 'Configure blocks of fields that can be inserted anywhere in your Bard content.',
'bard.config.select_across_sites' => 'Allow selecting entries from other sites. This also disables localizing options on the front-end. Learn more in the [documentation](https://statamic.dev/fieldtypes/entries#select-across-sites).',
'bard.config.smart_typography' => 'Convert common text patterns with the proper typographic characters.',
'bard.config.target_blank' => 'Set `target="_blank"` on all links.',
'bard.config.toolbar_mode' => '**Fixed** mode will keep the toolbar visible at all times, while **floating** only appears while selecting text.',
Expand Down
5 changes: 5 additions & 0 deletions src/Fieldtypes/Bard.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,11 @@ protected function configFieldItems(): array
'type' => 'collections',
'mode' => 'select',
],
'select_across_sites' => [
'display' => __('Select Across Sites'),
'instructions' => __('statamic::fieldtypes.bard.config.select_across_sites'),
'type' => 'toggle',
],
'container' => [
'display' => __('Container'),
'instructions' => __('statamic::fieldtypes.bard.config.container'),
Expand Down