# You must use a tab-size of 4 spaces to edit this file.
---
plugin_settings:
    module_class_name: zenario_breadcrumbs
    tabs:
        first_tab:
            label: Breadcrumb Settings
            fields:
                menu_section:
                    plugin_setting:
                        name: menu_section
                        foreign_key_to: menu_section
                        dangling_cross_references: delete_instance
                    label: 'Menu section:'
                    pick_items:
                        path: zenario__menu/panels/sections
                        min_path: zenario__menu/panels/sections
                        max_path: zenario__menu/panels/sections
                        target_path: zenario__menu/panels/sections
                        select_phrase: Select menu section...
                        hide_remove_button: true
                        hide_info_button: true
                    value: "1"
                    validation:
                        required: Please select a menu section
                        
                breadcrumb_trail:
                    plugin_setting:
                        name: breadcrumb_trail
                    label: "First breadcrumb:"
                    type: radios
                    values:
                        do_not_prefix:
                            label: "Use the top level menu node"
                        site_home_page:
                            label: "Use the home page"
                        other_menu_node:
                            label: "Use a specific menu node"
                    value: site_home_page
                    format_onchange: true
                    side_note: On multi-lingual sites, the link will always point to the page in the current visitor language, if it exists.
                    
                breadcrumb_prefix_menu:
                    plugin_setting:
                        name: breadcrumb_prefix_menu
                        foreign_key_to: content
                        dangling_cross_references: delete_instance
                    visible_if: >
                        zenarioAB.value('breadcrumb_trail') == 'other_menu_node'
                    label: 'Menu node:'
                    pick_items:
                        path: zenario__menu/panels/menu_position/refiners/existing////
                        min_path: zenario__menu/panels/menu_position
                        select_phrase: Select menu node...
                        disallow_refiners_looping_on_min_path: true
                        hide_remove_button: true
                        visible_if_for_all_selected_items: |
                            zenario.engToBoolean(item.menu_id)
                    validation:
                        required_if_not_hidden: Please select a menu node
                        
                breadcrumb_trail_separator:
                    plugin_setting:
                        name: breadcrumb_trail_separator
                    label: 'Breadcrumb trail separator:'
                    type: text
                    value: ''
                    style: 'width: 5em;'
                        
                add_conductor_slides:
                    plugin_setting:
                        name: add_conductor_slides
                    visible_if: |
                        lib.tuix.key.usesConductor
                    label: 'Add nest conductor slides to the breadcrumb trail'
                    type: checkbox
                    note_below: |
                        The first slide's title will not appear in the breadcrumb trail, edit the content item's menu node to set this.
                        
                add_json_ld:
                    plugin_setting:
                        name: add_json_ld
                    visible_if: |
                        !lib.tuix.key.eggId
                    label: 'Generate structured data to describe rich results, breadcrumb type'
                    type: checkbox
                    note_below: |
                            This option will generate JSON-LD structured data in the <code>&lt;head&gt;</code> of the page, describing the breadcrumb trail to this page. For more information or to test the page, see <a href="https://search.google.com/test/rich-results" target="_blank">https://search.google.com/test/rich-results</a>.
                
