TYPO3扩展新闻更改为详细信息视图

时间:2019-01-16 15:13:56

标签: typo3 tx-news typo3-extensions

我已经开始使用新闻扩展名(link),并且设置进行得很好。正如documentation所说,我已经更改了常量以使用我自己的站点包。我还在静态文件列表中添加了新闻。

但是,当尝试更改新闻页面的详细信息视图时(通过在site_package中创建详细信息视图),它似乎不起作用。我无法添加任何更改。另外,新闻的网址最终还是一个很长的字符串,例如:

/index.php?id=30&tx_news_pi1%5Bnews%5D=15&tx_news_pi1%5Bcontroller%5D=News&tx_news_pi1%5Baction%5D=detail&cHash=c31900b3fb7edbad7fd46044e0ab3b02

在文档中搜索时,我找不到任何提及,也找不到与Stackoverflow相关的任何问题。我已经尝试过此answer,但无济于事。

我不是很精通流体模板,所以我不确定并发症。

我的TYPO3版本是8.7.18

ext:news中的常量文件如下所示

    view {
    # cat=plugin.tx_news/file; type=string; label=Path to template root (FE)
    templateRootPath = EXT:my_site_package/Resources/Private/Templates/ext/news/Templates/
    # cat=plugin.tx_news/file; type=string; label=Path to template partials (FE)
    partialRootPath = EXT:my_site_package/Resources/Private/Templates/ext/news/Partials/
    # cat=plugin.tx_news/file; type=string; label=Path to template layouts (FE)
    layoutRootPath = EXT:my_site_package/Resources/Private/Templates/ext/news/Layouts/
}

settings {
    # cat=plugin.tx_news/file; type=string; label=Path to CSS file
    cssFile = EXT:my_site_package/Resources/Public/ext/news/news-basic.css
}

0 个答案:

没有答案
相关问题