TYPO3 Extbase backend модул грешен шаблон

Току-що инсталирах примерно разширение, наречено blog_example и не разбирам, че когато отворя бекенд модула, получих предния шаблон (blog_example/Resources/Private/Templates/Blog/index.html) вместо бекенд шаблона (blog_example/Resources/Private /Backend/Templates/Blog/index.html). Когато добавя някакъв текст в шаблона на FE, наистина го виждам в задния модул.

Какво може да не е наред? Ясна е инсталацията на това примерно разширение, не съм променил нищо.

В blog_example/Configuration/TypoScript/constants.txt е (относно BE модула):

module.tx_blogexample {
    view {
        templateRootPath = EXT:blog_example/Resources/Private/Backend/Templates/
        partialRootPath = EXT:blog_example/Resources/Private/Partials/
        layoutRootPath = EXT:blog_example/Resources/Private/Backend/Layouts/
    }
}

В blog_example/Configuration/TypoScript/setup.txt е (относно модула BE):

module.tx_blogexample {
    settings < plugin.tx_blogexample.settings
    persistence < plugin.tx_blogexample.persistence
    view < plugin.tx_blogexample.view
    view {
        templateRootPath = {$module.tx_blogexample.view.templateRootPath}
        partialRootPath = {$module.tx_blogexample.view.partialRootPath}
        layoutRootPath = {$module.tx_blogexample.view.layoutRootPath}
    }
}

Наистина съм объркан. Благодаря.


person Tomask    schedule 06.08.2013    source източник
comment
Включили ли сте статичните TS шаблони?   -  person Michael    schedule 06.08.2013
comment
Не, нямам, сега работи! Благодаря ти :-)   -  person Tomask    schedule 07.08.2013


Отговори (1)


Решено – не забравяйте да включите статични TS шаблони в конфигурацията на шаблона. Благодаря на Майкъл.

person Tomask    schedule 07.08.2013