config.tx_extbase {
    persistence {
        classes {
            DWenzel\T3events\Domain\Model\Content {
                mapping {
                    tableName = tt_content
                    columns {
                        altText.mapOnProperty = altText
                        titleText.mapOnProperty = titleText
                        colPos.mapOnProperty = colPos
                        CType.mapOnProperty = CType
                    }
                }
            }

            DWenzel\T3events\Domain\Model\Country {
                mapping {
                    tableName = static_countries
                }
            }

            DWenzel\T3events\Domain\Model\Person {
                mapping {
                    columns {
                        tx_extbase_type.mapOnProperty = type
                    }
                }
            }

            DWenzel\T3events\Domain\Model\Category {
                mapping {
                    tableName = sys_category
                }
            }
        }
    }
}

config.tx_extbase {
    objects {
        DWenzel\T3events\Session\SessionInterface {
            className = DWenzel\T3events\Session\Typo3BackendSession
        }

        DWenzel\T3events\Domain\Repository\TaskRepositoryInterface {
            className = DWenzel\T3events\Domain\Repository\TaskRepository
        }
    }
}

[globalString = TSFE:fe_user|loginType = FE]
    config.tx_extbase {
        objects {
            DWenzel\T3events\Session\SessionInterface {
                className = DWenzel\T3events\Session\Typo3Session
            }
        }
    }
[global]

module.tx_t3events {
    view {
        templateRootPaths {
            10 = {$module.tx_t3events.view.templateRootPaths.10}
        }

        partialRootPaths {
            10 = {$module.tx_t3events.view.partialRootPaths.10}
        }

        layoutRootPaths {
            10 = {$module.tx_t3events.view.layoutRootPaths.10}
        }
    }

    settings {
        persistence.storagePid = {$module.tx_t3events.persistence.storagePid}
        storagePages = {$module.tx_t3events.persistence.storagePid}
        event {
            list {
                maxItems = {$module.tx_t3events.settings.event.list.maxItems}
                filter {
                    genre = all
                    audience = all
                    venue = all
                    eventType = all
                    periods = futureOnly,pastOnly,all
                }

                paginate {
                    itemsPerPage = 25
                    insertBelow = 0
                    insertAbove = 1
                }
            }

            search {
                fields = headline,subtitle
                showSubjectField = 1
            }
        }

        schedule {
            list {
                maxItems = {$module.tx_t3events.settings.schedule.list.maxItems}
                period = all
                filter {
                    genre = all
                    audience = all
                    venue = all
                    eventType = all
                    periods = futureOnly,pastOnly,all
                }

                paginate {
                    itemsPerPage = 25
                    insertBelow = 0
                    insertAbove = 1
                }

                search {
                    fields = event.headline,event.subtitle
                    showSubjectField = 1
                }

                order = date|asc,begin|asc
            }
        }
    }
}

lib.compatVersion76 = TEXT
lib.compatVersion76.value = false
[compatVersion = 7.6.0] || [compatVersion = 8.7.0]
    lib.compatVersion76.value = true
[global]
