TYPO3:tt_news 多语言配置 - 尽管没有翻译,但仍显示[更多]链接
要使新闻以默认语言以外的其他语言显示,必须采取哪些措施。我已经有:
- 网站语言
- 新闻概述的页面翻译(显示:最新)
- 详细新闻的页面翻译(显示:单一)
在我的默认语言中,一切正常。但对于新语言,我只能在页面上看到空的新闻,并带有一个[更多]链接,点击该链接后,我会没有给出 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我为存储新闻的文件夹创建了翻译。现在看来有效了。对于另一个问题:我添加了以下代码行:
现在显示
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:
Now
no news in this list.
is displayed.