【问题标题】:TYPO3: tt_news multilanguage configuration - [more] link shown despite there is no translationTYPO3:tt_news 多语言配置 - 尽管没有翻译,但仍显示 [更多] 链接
【发布时间】:2011-12-07 12:01:11
【问题描述】:

必须执行哪些操作才能以默认语言以外的其他语言提供新闻。我已经有了:

  • 网站语言
  • 新闻概览的页面翻译(显示:最新)
  • 详细新闻的页面翻译(显示:SINGLE)

在我的默认语言中,一切正常。但是对于新语言,我只在页面上看到带有 [更多] 链接的空白新闻,点击该链接时我会看到 no news_id given。我是否必须为存储新闻的文件夹创建页面翻译?到目前为止,我只能为每个新闻条目设置语言。

编辑:

我为存储新闻的文件夹创建了翻译。现在它似乎工作了。但是如果没有翻译,我该如何删除 [more] 链接?

这是在 HTML 代码中

<div class="news-latest-container">

          <div class="news-latest-item">
            <div class="news-item-left"><a title="" href="xxx/news/news-detail.html"></a></div>
            <div class="news-item-right">
                <h3><a title="" href="xxx/news/news-detail.html"></a></h3>
                <p></p><hr class="clearer">

                <div class="news-latest-morelink"><a title="" href="xxx/news/news-detail.html">[more]</a></div>
            </div>
          </div>


          <div class="news-latest-item">
            <div class="news-item-left"><a title="" href="xxx/news/news-detail.html"></a></div>
            <div class="news-item-right">
                <h3><a title="" href="xxx/news/news-detail.html"></a></h3>
                <p></p><hr class="clearer">

                <div class="news-latest-morelink"><a title="" href="xxx/news/news-detail.html">[more]</a></div>
            </div>
          </div>


</div>

我也用过

plugin.tt_news.displayList.subheader_stdWrap.append > 

抑制第二个更多链接。但是为什么显示的是空消息呢?

【问题讨论】:

    标签: configuration typo3 multilingual tt-news


    【解决方案1】:

    我为存储新闻的文件夹创建了翻译。现在它似乎工作了。对于另一个问题:我添加了以下代码行:

    plugin.tt_news.showNewsWithoutDefaultTranslation = 0
    plugin.tt_news.sys_language_mode = strict
    

    现在显示no news in this list.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-09-11
      相关资源
      最近更新 更多