# You must use a tab-size of 4 spaces to edit this file.
---
zenario__content:
    panels:
        content_types:
            priv: _PRIV_VIEW_SITE_SETTING
            title: Settings for content types
            use_tall_rows: true;
            db_items:
                table: |
                    [[DB_PREFIX]]content_types AS ct
                    LEFT JOIN [[DB_PREFIX]]modules AS m
                       ON m.id = ct.module_id
                id_column: ct.content_type_id
                client_side: true
            columns:
                content_type_name_en:
                    title: Name
                    searchable: true
                    db_column: ct.content_type_name_en
                    show_by_default: true
                content_type_id:
                    title: Code
                    width: xsmall
                    format: id
                    searchable: true
                    db_column: ct.content_type_id
                    show_by_default: true
                    disallow_sorting: true
                layout:
                    title: Default layout
                    #searchable: true
                    db_column: ct.default_layout_id
                    item_link: zenario__layouts/panels/layouts
                    show_by_default: true
                    disallow_sorting: true
                enable_categories:
                    title: Categories
                    format: yes_or_no
                    yes_phrase: Categories enabled
                    no_phrase: Categories disabled
                    searchable: true
                    db_column: ct.enable_categories
                    show_by_default: true
                    disallow_sorting: true
                defaults:
                    title: Defaults for new content items
                    width: xlarge
                    searchable: false
                    show_by_default: true
                    disallow_sorting: true
                content_type_plural_en:
                    db_column: ct.content_type_plural_en
                not_enabled:
                    db_column: "m.status NOT IN ('module_running', 'module_is_abstract')"
                writer_field:
                    db_column: ct.writer_field
                description_field:
                    db_column: ct.description_field
                tooltip_text:
                    db_column: ct.tooltip_text
                keywords_field:
                    db_column: ct.keywords_field
                summary_field:
                    db_column: ct.summary_field
                release_date_field:
                    db_column: ct.release_date_field
                enable_categories:
                    db_column: ct.enable_categories
                is_creatable:
                    db_column: ct.is_creatable
                menu_node_position_edit:
                    db_column: ct.menu_node_position_edit
            
            default_sort_column: content_type_name_en
            item:
                css_class: content_type_settings
                tooltip_when_link_is_active: 'View [[content_type_plural_lower_en]]'
                link:
                    path: zenario__content/panels/languages
                    refiner: content_type
            
            collection_buttons:
                settings_dropdown:
                    css_class: organizer_settings_dropdown
                    hide_when_children_are_not_visible: true
                    label: ⚙
                settings_ctype_list:
                    priv: _PRIV_RUN_MODULE
                    parent: settings_dropdown
                    hide_in_select_mode: true
                    label: Enable more content types
                    link:
                        path: zenario__modules/panels/modules~-zenario_ctype

            item_buttons:
                edit_ctype:
                    label: Edit settings
                    admin_box:
                        path: zenario_content_type_details
                #view_content:
                #    parent: view_dropdown
                #    label: View content items
                #    link:
                #        path: zenario__content/panels/content
                #        refiner: content_type
            
            #I'm not sure if anything uses this; we should probably delete it after the next branch!
            hidden_nav:
                layouts:
                    link:
                        path: zenario__layouts/panels/layouts
                        refiner: content_type