Skip to content

Commit

Permalink
[!!!][BUGFIX] Ensure fallback to default templates is always set
Browse files Browse the repository at this point in the history
To ensure that blog templates can be overwritten
partly the default is now always pointing to the
templates within the blog extension.

Migration is only nessesary if you have previously
overwritten the templates within your setup and used
the key "1" as pointer for your templates.

```
plugin.tx_blog {
    view {
        templateRootPaths {
            0 = EXT:blog/Resources/Private/Templates/
            1 = {$plugin.tx_blog.view.templateRootPaths}
        }
        partialRootPaths {
            0 = EXT:blog/Resources/Private/Partials/
            1 = {$plugin.tx_blog.view.partialRootPaths}
        }
        layoutRootPaths {
            0 = EXT:blog/Resources/Private/Layouts/
            1 = {$plugin.tx_blog.view.layoutRootPaths}
        }
        emails {
            templateRootPaths {
                0 = EXT:blog/Resources/Private/Mails/Templates/
                1 = {$plugin.tx_blog.view.emails.templateRootPaths}
            }
            partialRootPaths {
                0 = EXT:blog/Resources/Private/Mails/Partials/
                1 = {$plugin.tx_blog.view.emails.partialRootPaths}
            }
            layoutRootPaths {
                0 = EXT:blog/Resources/Private/Mails/Layouts/
                1 = {$plugin.tx_blog.view.emails.layoutRootPaths}
            }
        }
    }
}
```
  • Loading branch information
benjaminkott committed Oct 26, 2020
1 parent 2152304 commit 5f496c9
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions Configuration/TypoScript/Static/setup.typoscript
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,34 @@ plugin.tx_blog {
storagePid = {$plugin.tx_blog.settings.storagePid}
}
view {
templateRootPaths.0 = {$plugin.tx_blog.view.templateRootPaths}
partialRootPaths.0 = {$plugin.tx_blog.view.partialRootPaths}
layoutRootPaths.0 = {$plugin.tx_blog.view.layoutRootPaths}
templateRootPaths {
0 = EXT:blog/Resources/Private/Templates/
1 = {$plugin.tx_blog.view.templateRootPaths}
}
partialRootPaths {
0 = EXT:blog/Resources/Private/Partials/
1 = {$plugin.tx_blog.view.partialRootPaths}
}
layoutRootPaths {
0 = EXT:blog/Resources/Private/Layouts/
1 = {$plugin.tx_blog.view.layoutRootPaths}
}
widget.TYPO3\CMS\Fluid\ViewHelpers\Widget\PaginateViewHelper.templateRootPath = EXT:blog/Resources/Private/Templates

# Emails
emails {
templateRootPaths.0 = {$plugin.tx_blog.view.emails.templateRootPaths}
partialRootPaths.0 = {$plugin.tx_blog.view.emails.partialRootPaths}
layoutRootPaths.0 = {$plugin.tx_blog.view.emails.layoutRootPaths}
templateRootPaths {
0 = EXT:blog/Resources/Private/Mails/Templates/
1 = {$plugin.tx_blog.view.emails.templateRootPaths}
}
partialRootPaths {
0 = EXT:blog/Resources/Private/Mails/Partials/
1 = {$plugin.tx_blog.view.emails.partialRootPaths}
}
layoutRootPaths {
0 = EXT:blog/Resources/Private/Mails/Layouts/
1 = {$plugin.tx_blog.view.emails.layoutRootPaths}
}
}
}
settings {
Expand Down

0 comments on commit 5f496c9

Please sign in to comment.