# You must use a tab-size of 4 spaces to edit this file.
---
author_name: Tribal Systems
copyright_info: © Tribal Limited
editions: Community, Pro, ProBusiness, Enterprise
start_running_on_install: false
license_info: 'Modified BSD License'
is_abstract: true
fill_organizer_nav: true
display_name: Common Features
description: |
    <p>This module provides all the standard features for Zenario. It does not normally appear in the Organizer Modules panel.</p>
category: core
vlp_class_name: zenario_common_features
content_types:
    content_type:
        content_type_id: html
        content_type_name_en: HTML page
        content_type_plural_en: HTML pages
        enable_summary_auto_update: false
        description_field: optional
        tooltip_text: Flat view of all HTML page content items
        keywords_field: hidden
        summary_field: hidden
        release_date_field: hidden
special_pages:
    zenario_home:
        page_type: zenario_home
        default_alias: home
        default_title: Home
        menu_title: Home
        footer_menu_title: Home
        layout: Home page
        publish: true
        logic: create_and_maintain_in_default_language
        allow_hide: false
        must_be_listed: true
        default_content: |
            <h2>Welcome to your new Zenario site!</h2>
            <p>Congratulations, you have just installed your new Zenario site.</p>
            <p>You may add another page by clicking "New..." on the Admin Toolbar, then selecting what kind of content to create. Initially you may just see HTML pages but you can enable more content types <a href="organizer.php?#zenario__modules/panels/modules~-zenario_ctype">in Organizer</a>.</p>
            <p>Pages (called "content items" in Zenario) will be created as drafts and visible to administrators only. Click on the "Publish" button to make them visible to regular site visitors.</p>
            <p>View tutorials, and get support, at <a href="https://zenar.io" target="_blank" rel="noopener">https://zenar.io</a>.</p>
            <p>We hope you enjoy using Zenario.</p>
    zenario_not_found:
        page_type: zenario_not_found
        default_alias: not-found
        default_title: Not found
        default_content: |
            <h1>Oops! There is no such page.</h1>
            <p>The page you requested was not found.</p>
        publish: true
        logic: create_and_maintain_in_default_language
        allow_hide: false
        must_be_unlisted: true
    zenario_no_access:
        page_type: zenario_no_access
        default_alias: no-access
        default_title: No access
        default_content: |
            <h1>Sorry! You cannot see that page.</h1>
            <p>You are trying to access a page that requires a higher level of permissions than you have.</p>
        publish: true
        logic: create_and_maintain_in_default_language
        allow_hide: false
        must_be_unlisted: true
    zenario_example_page:
        page_type: zenario_example_page
        default_alias: second-page
        default_title: Second page
        menu_title: Second page
        logic: create_in_default_language_on_install
        default_content: |
            <h1>Second page</h1>
            <p>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur euismod ullamcorper nibh sit amet congue.
                Nullam rutrum orci vitae lacus luctus, eu facilisis urna varius. Morbi nec orci sed lacus tincidunt tincidunt sit amet et justo.
                Nunc gravida convallis leo, vitae mattis massa tempor quis. Ut quis nisl imperdiet, semper lacus ac, lobortis urna.
                Integer bibendum pretium tortor, non sodales turpis feugiat sed. Nullam molestie nulla leo, non vestibulum quam porttitor nec.
                In hac habitasse platea dictumst. Morbi aliquam malesuada hendrerit. Ut quis elit lorem. Praesent ut elit consequat, mattis est sed, dictum ligula.
                Duis ut mi orci. Integer urna lacus, hendrerit nec arcu sit amet, bibendum pretium nulla. Nam consequat dignissim tellus sit amet aliquam.
            </p>
            <h2>Vestibulum sed ornare felis, ut blandit ipsum.</h2>
            <p>
                Orci varius natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus.
                Vivamus dapibus, ipsum eu consectetur accumsan, purus ipsum laoreet mi, vel sollicitudin est ex vitae turpis. Proin in mauris ante.
                Pellentesque pretium mollis ligula. Duis sed tincidunt lacus. Nunc rutrum ornare arcu, vel vestibulum ante aliquet nec.
                Aliquam euismod ante leo, et lacinia nulla vulputate scelerisque. Duis efficitur, nibh in sagittis egestas, ipsum orci interdum sem,
                sed aliquet tellus nulla vel metus. Duis semper purus vel turpis elementum, id accumsan velit sollicitudin.
            </p>
    zenario_privacy_policy:
        page_type: zenario_privacy_policy
        default_alias: privacy-policy
        default_title: Privacy policy
        default_content: |
            <h1>Privacy policy</h1>
            <p>This page is auto-created. Its purpose is that you can state organisation's privacy policy here.</p>
            <p>We recommend you include information about any cookies you may use, how you process confidential data, or any other relevant information.</p>
        logic: create_and_maintain_in_default_language
        allow_hide: true
        allow_search: true
pagination_types:
    pagSelectList:
        function_name: pagSelectList
        label: Select list
    pagCurrentWithNP:
        function_name: pagCurrentWithNP
        label: Current page number with Next/Previous
    pagCurrentWithFNPL:
        function_name: pagCurrentWithFNPL
        label: Current page number with First/Next/Previous/Last
    pagAll:
        function_name: pagAll
        label: All page numbers
    pagAllWithNPIfNeeded:
        function_name: pagAllWithNPIfNeeded
        label: All page numbers with Next/Previous if needed
    pagCloseWithNPIfNeeded:
        function_name: pagCloseWithNPIfNeeded
        label: Nearby page numbers with Next/Previous if needed
    pagCloseWithNP:
        function_name: pagCloseWithNP
        label: Nearby page numbers with Next/Previous
    pagCloseWithFNPLIfNeeded:
        function_name: pagCloseWithFNPLIfNeeded
        label: Nearby page numbers with First/Next/Previous/Last if needed
    pagCloseWithFNPL:
        function_name: pagCloseWithFNPL
        label: Nearby page numbers with First/Next/Previous/Last
jobs:
    -
        name: jobCleanDirectories
        static: true
        months: jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
        days: mon,tue,wed,thr,fri,sat,sun
        hours: >
            0h,1h,2h,3h,4h,5h,6h,7h,8h,9h,10h,11h,12h,13h,14h,15h,16h,17h,18h,19h,20h,21h,22h,23h
        minutes: 0m,30m
        log_on_action: false
        log_on_no_action: false
        email_on_action: false
        enabled_by_default: true
    -
        name: jobPublishContent
        static: true
        months: jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
        days: mon,tue,wed,thr,fri,sat,sun
        hours: >
            0h,1h,2h,3h,4h,5h,6h,7h,8h,9h,10h,11h,12h,13h,14h,15h,16h,17h,18h,19h,20h,21h,22h,23h
        minutes: 0m,5m,10m,15m,20m,25m,30m,35m,40m,45m,50m,55m
        log_on_action: true
        log_on_no_action: false
        email_on_action: false
    -
        name: jobUnpinContent
        static: true
        months: jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
        days: mon,tue,wed,thr,fri,sat,sun
        hours: 0h
        minutes: 0m
        log_on_action: true
        log_on_no_action: false
        email_on_action: false
    -
        name: jobDataProtectionCleanup
        static: true
        months: jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
        days: mon,tue,wed,thr,fri,sat,sun
        hours: 0h
        minutes: 0m
        log_on_action: true
        log_on_no_action: false
        email_on_action: false
    -
        name: jobFetchDocumentExtract
        static: true
        months: jan,feb,mar,apr,may,jun,jul,aug,sep,oct,nov,dec
        days: mon,tue,wed,thr,fri,sat,sun
        hours: >
            0h,1h,2h,3h,4h,5h,6h,7h,8h,9h,10h,11h,12h,13h,14h,15h,16h,17h,18h,19h,20h,21h,22h,23h
        minutes: 0m,5m,10m,15m,20m,25m,30m,35m,40m,45m,50m,55m
        run_every_minute: true
        log_on_action: true
        log_on_no_action: false
        email_on_action: false

signals:
    - 
        name: deleteUserDataGetInfo
        static: true

centralised_lists:
    -
        method_name: getSalutations
        label: Salutations