TYPO3:tt_news 多语言配置 - 尽管没有翻译,但仍显示[更多]链接

发布于 2024-12-20 00:14:58 字数 1695 浏览 2 评论 0原文

要使新闻以默认语言以外的其他语言显示,必须采取哪些措施。我已经有:

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

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

编辑:

我为存储新闻的文件夹创建了翻译。现在看来有效了。但如果没有翻译,如何删除[更多]链接呢?

这是在 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 > 

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

What has to be done to have News in another language than the default language available. I already have:

  • Website Language
  • Page translation for news overview (Displaying: LATEST)
  • Page translation for detailed news (Displaying: SINGLE)

In my default language everything is working. But for the new language I only see empty News on the page with a [more] link which gives me no news_id given when clicked. Do I have to create a page translation for the folder in which the news are stored? Up to now I only can set the language for each news entry.

Edit:

I created a translation for my folder, which stores the news. Now it seems to work. But how can I remove the [more] link if there is no translation?

This is in the HTML code

<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>

I also used

plugin.tt_news.displayList.subheader_stdWrap.append > 

to supress the second more link. But why are there empty news displayed?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

酒儿 2024-12-27 00:14:58

我为存储新闻的文件夹创建了翻译。现在看来有效了。对于另一个问题:我添加了以下代码行:

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

现在显示 no news in this list.

I created a translation for my folder, which stores the news. Now it seems to work. For the other question: I added the following lines of code:

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

Now no news in this list. is displayed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文