plugin.tx_sgestatebase_pi1 {
    features{
        skipDefaultArguments = 1
        requireCHashArgumentForActionArguments = 0
    }
    view {
        templateRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Templates/
            1 = {$plugin.tx_sgestatebase_pi1.view.templateRootPath}
        }
        partialRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Partials/
            1 = {$plugin.tx_sgestatebase_pi1.view.partialRootPath}
        }
        layoutRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Layouts/
            1 = {$plugin.tx_sgestatebase_pi1.view.layoutRootPath}
        }
    }

    settings{
        defaultCacheLifetime = {$plugin.tx_sgestatecore.defaultCacheLifetime}
        realtiesStoragePid = {$module.tx_sgestatecore.persistence.storagePid}
        list{
            noParametersNoResults = {$plugin.tx_sgestatebase_pi1.settings.list.noParametersNoResults}
        }
        pid{
            search = {$plugin.tx_sgestatebase_pi1.settings.pid.search}
            list = {$plugin.tx_sgestatebase_pi1.settings.pid.list}
            detail = {$plugin.tx_sgestatebase_pi1.settings.pid.detail}
            contact = {$plugin.tx_sgestatebase_pi1.settings.pid.contact}
            privacyStatement = {$plugin.tx_sgestatebase_pi1.settings.pid.privacyStatement}
        }
        preset{
            search{
                useSlider = 0
                filterData = 1
                showPlacesAutocomleteForRadius = 0
                showCity = 1
                showDistrict = 1
                showRoomMinMax = 1
                showSizeMinMax = 1
                showRentMinMax = 1
                showPersonsMinMax = 1
                #Variables in districtFormat: %city%,%district%
                districtFormat =
                radius = {$plugin.tx_sgestatebase_pi1.settings.preset.search.radius}
                persons = {$plugin.tx_sgestatebase_pi1.settings.preset.search.persons}
                sortByCurrentCity = {$plugin.tx_sgestatebase_pi1.settings.preset.search.sortByCurrentCity}
                swoppenExt = {$plugin.tx_sgestatebase_pi1.settings.preset.search.swoppenExt}
            }
            slider{
                size{
                    range = max
                    min = 30
                    max = 120
                    value = 50
                }
                room{
                    range = max
                    min = 1
                    max = 5
                    value = 2
                }
                amount{
                    range = min
                    min = 200
                    max = 900
                    value = 800
                }
            }
        }
        contact{
            redirectPidSuccess = {$plugin.tx_sgestatebase_pi1.settings.contact.redirectPidSuccess}
            redirectPidFailure = {$plugin.tx_sgestatebase_pi1.settings.contact.redirectPidFailure}
            useRealtyContactAsReceiver = {$plugin.tx_sgestatebase_pi1.settings.contact.useRealtyContactAsReceiver}
            receivers = {$plugin.tx_sgestatebase_pi1.settings.contact.receivers}
            sender = {$plugin.tx_sgestatebase_pi1.settings.contact.sender}
            subject = {$plugin.tx_sgestatebase_pi1.settings.contact.subject}
            mailformat = {$plugin.tx_sgestatebase_pi1.settings.contact.mailformat}
            addFeedbackAttachment = {$plugin.tx_sgestatebase_pi1.settings.contact.addFeedbackAttachment}
            brokerId = {$plugin.tx_sgestatebase_pi1.settings.contact.brokerId}
            fields{
                10{
                    name = salutation
                    renderType = selectSingle
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.salutation
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.salutation
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.salutation
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.salutation
                    required = 1
                    items{
                        10{
                            label = Herr
                            value = mr
                        }
                        20{
                            label = Frau
                            value = mrs
                        }
                    }
                }
                20{
                    name = firstname
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.firstname
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.firstname
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.firstname
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.firstname
                    required = 1
                }
                30{
                    name = lastname
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.lastname
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.lastname
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.lastname
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.lastname
                    required = 1
                }
                40{
                    name = company
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.company
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.company
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.company
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.company
                    required = 1
                }
                50{
                    name = street
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.street
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.street
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.street
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.street
                    required = 1
                    errorText = Bitte geben Sie eine Straße ein.
                }
                60{
                    name = zip
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.zip
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.zip
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.zip
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.zip
                    required = 1
                }
                70{
                    name = city
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.city
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.city
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.city
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.city
                    required = 1
                }
                80{
                    name = phone
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.phone
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.phone
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.phone
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.phone
                    required = 1
                }
                90{
                    name = fax
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.fax
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.fax
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.fax
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.fax
                    required = 1
                }
                100{
                    name = mobile
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.mobile
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.mobile
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.mobile
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.mobile
                    required = 1
                }
                110{
                    name = email
                    renderType = input
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.email
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.email
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.email
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.email
                    required = 1
                }
                120{
                    name = channel
                    renderType = selectMultiple
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.channel
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.channel
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.channel
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.channel
                    required = 1
                    items{
                        10{
                            label = E-Mail
                            value = EMAIL
                        }
                        20{
                            label = Telefon
                            value = TEL
                        }
                        30{
                            label = Mobil
                            value = MOBIL
                        }
                        40{
                            label = Fax
                            value = FAX
                        }
                        50{
                            label = Brief
                            value = BREIF
                        }
                    }
                }
                130{
                    name = wish
                    renderType = selectMultiple
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.wish
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.wish
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.wish
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.wish
                    required = 1
                    items{
                        10{
                            label = Besichtigung
                            value = BESICHTIGUNG
                        }
                        20{
                            label = Anruf
                            value = ANRUF
                        }
                        30{
                            label = Informationen
                            value = INFORMATION
                        }
                    }
                }
                140{
                    name = message
                    renderType = textarea
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.message
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.message
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.message
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.message
                    required = 1
                }
                150{
                    name = privacy
                    renderType = privacy
                    label = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.privacy
                    errorText = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.error.privacy
                    placeholder = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.placeholder.privacy
                    helptext = LLL:EXT:sg_estate_base/Resources/Private/Language/locallang.xlf:template.contact.help.privacy
                    required = 1
                }
            }
        }
        search{
            layout = Standard
        }
        keys {
            googleapi = {$plugin.tx_sg_sitepackage.settings.keys.googleapi}
        }
        statics {
            googleMapsMarkerIcon = {$plugin.tx_sg_sitepackage.settings.statics.googleMapsMarkerIcon}
        }
        detail {
            cache = {$plugin.tx_sg_sitepackage.settings.detail.cache}
        }
    }
}
[globalVar = TSFE:id = {$plugin.tx_sgestatebase_pi1.settings.pid.detail}]
    config.noPageTitle = 2
[global]

plugin.tx_sgestatebase.widgets{
    searchbox = USER
    searchbox{
        userFunc = TYPO3\CMS\Extbase\Core\Bootstrap->run
        extensionName = SgEstateBase
        pluginName = Pi1
        vendorName = SG
        controller = Base
        action = search
        switchableControllerActions {
            Base {
                1 = search
                2 = index
                3 = detail
                4 = contact
                5 = ajax
            }
        }
        view < plugin.tx_sgestatebase_pi1.view
        settings < plugin.tx_sgestatebase_pi1.settings
    }
}

sgestatebase_ajax_page = PAGE
sgestatebase_ajax_page {
    typeNum = 1403693888
    config {
        disableAllHeaderCode = 1
        xhtml_cleaning = 0
        admPanel = 0
    }
    10 < tt_content.list.20.sgestatebase_pi1
}


plugin.tx_sgestatebase_pi2 {
    features{
        skipDefaultArguments = 1
    }
    view {
        templateRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Templates/BaseLandingpage/
            1 = {$plugin.tx_sgestatebase_pi2.view.templateRootPath}
        }
        partialRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Partials/BaseLandingpage/
            1 = {$plugin.tx_sgestatebase_pi2.view.partialRootPath}
        }
        layoutRootPaths{
            0 = EXT:sg_estate_base/Resources/Private/Layouts/
            1 = {$plugin.tx_sgestatebase_pi2.view.layoutRootPath}
        }
    }
    settings{
        defaultCacheLifetime = {$plugin.tx_sgestatecore.defaultCacheLifetime}
        realtiesStoragePid = {$plugin.tx_sgestatebase_pi1.settings.pid.realtiesStoragePid}
        pid{
            search = {$plugin.tx_sgestatebase_pi1.settings.pid.search}
            list = {$plugin.tx_sgestatebase_pi1.settings.pid.list}
            detail = {$plugin.tx_sgestatebase_pi1.settings.pid.detail}
            contact = {$plugin.tx_sgestatebase_pi1.settings.pid.contact}
        }
        keys {
            googleapi = {$plugin.tx_sgcustomsite.settings.keys.googleapi}
        }
        preset < plugin.tx_sgestatebase_pi1.settings.preset
    }
}