plugin.tx_blogging {

    view {
        templateRootPaths {
            0 = {$plugin.tx_blogging.privateResources}/Templates/
            1 = {$plugin.tx_blogging.view.templateRootPath}
        }

        partialRootPaths {
            0 = {$plugin.tx_blogging.privateResources}/Partials/
            1 = {$plugin.tx_blogging.view.partialRootPath}
        }

        widget.TYPO3\CMS\Fluid\ViewHelpers\Widget\PaginateViewHelper.templateRootPaths {
            0 = {$plugin.tx_blogging.privateResources}/Templates/
            1 = {$plugin.tx_blogging.view.paginatorViewHelperRootPath}
        }
    }

    settings {
        blogPostStorageUid = {$plugin.tx_blogging.settings.blogPostStorageUid}
        categoryPage = {$plugin.tx_blogging.settings.categoryPage}
        postsPerPage = {$plugin.tx_blogging.settings.postsPerPage}
    }

    rss {
        channelTitle = {$plugin.tx_blogging.rss.channelTitle}
        channelDescription = {$plugin.tx_blogging.rss.channelDescription}
        descriptionMaxLength = {$plugin.tx_blogging.rss.descriptionMaxLength}
    }
}

tx_blogging_rss = PAGE
tx_blogging_rss {
    # NOTE: if you want to change the typeNum, please also check out the realurl configuration
    typeNum = 1337

    config {
        disableAllHeaderCode = 1
        xhtml_cleaning = 0
        admPanel = 0

        additionalHeaders {
            10.header = Content-Type: application/xml
        }
    }

    10 = USER
    10 {
        userFunc = Atomicptr\Blogging\UserFunc\RssUserFunc->render
    }
}

page.headerData.1337 = TEXT
page.headerData.1337 {
    value = <link rel="alternate" type="application/atom+xml" title="{$plugin.tx_blogging.rss.channelTitle}" href="/rss.xml" />
    insertData = 1
}


tx_blogging_category_rss < tx_blogging_rss
tx_blogging_category_rss {
    typeNum = 1338

    10.category.cObject = TEXT
    10.category.cObject.data = GP:tx_blogging_category
}