简体   繁体   English

TYPO3标签和EXT的图像问题:新闻系统KEY:新闻VER:2.2.1

[英]TYPO3 tags and image issue with EXT: News System KEY: news VER: 2.2.1

Hi All 大家好

I'm running: 我在跑:

EXT.KEY: news on TYPO3 v. 6.1 with FLUID/EXTBASE. EXT.KEY:使用FLUID / EXTBASE的TYPO3 v。6.1上的新闻。

I have 2 issue's/question. 我有2个问题。

1 - News Tag's disappear, when using "tag list" in plugin. 1-在插件中使用“标签列表”时,新闻标签消失。

I have added a "tag list" as element on my TYPO3 page, and its working fine, my problem is when i add another news plugin on another page, it's showing all the tag's from the two news plugin setup and I dont what to do that, so if i go to "Startingpoint" in Settings/plugin for the "Tag List" news-element and set it to the folder I save my newslist1 in, then all the tag's are disappeared, how can I set the "Tag list" so it's only show the tag's thats in the news from the folder "Newslist1"? 我在TYPO3页面上添加了一个“标签列表”作为元素,并且工作正常,我的问题是,当我在另一页上添加另一个新闻插件时,它显示了两个新闻插件设置中的所有标签,但我不知道该怎么做这样,如果我转到“标签/列表”新闻元素的“设置/插件”中的“起点”,并将其设置为我保存新闻列表1的文件夹,则所有标签都消失了,我该如何设置“标签/列表” ”,那么它仅在“ Newslist1”文件夹中的新闻中显示标签的多数民众赞成在?

I have done this "startingpoint" with the list show and its working fine, if at news page 1 it show the news from folder "newslist1" and if on news page 2 it shows only the news/items from folder "portfolio". 我已经使用列表显示及其正常工作完成了此“起点”,如果在新闻页面1上显示了来自文件夹“ newslist1”的新闻,如果在新闻页面2上仅显示了文件夹“ portfolio”中的新闻/项目。

2 - more images for a news. 2-更多新闻图片。

Is it possible to add some image for the news text, so i have 2-3 images in the site, like when u add a normal text/image element? 是否可以为新闻文本添加一些图像,所以我在站点中有2-3张图像,例如当您添加普通的文本/图像元素时?

Answer to issue 2 问题2的答案

You can enable the use of normal content elements in News. 您可以在新闻中启用常规内容元素的使用。 The switch to activate that feature is in the Extension Manager configuration of News. 激活该功能的开关在新闻的Extension Manager配置中。 You then have the possibility to add any content element to a News record. 然后,您可以将任何内容元素添加到新闻记录中。

By default the content elements are rendered before the normal news content, see here: https://git.typo3.org/TYPO3v4/Extensions/news.git/blob/HEAD:/Resources/Private/Templates/News/Detail.html#l67 默认情况下,内容元素在常规新闻内容之前呈现,请参见此处: https : //git.typo3.org/TYPO3v4/Extensions/news.git/blob/HEAD : /Resources/Private/Templates/News/Detail.html #l67

Of course you can change to order if you copy the template and adjust it to your needs. 当然,如果您复制模板并根据需要进行调整,则可以更改顺序。

  1. Its beter add you plugin width ts, like 它可能会增加插件宽度ts,例如

     lib.newstags = USER lib.newstags{ userFunc = tx_extbase_core_bootstrap->run extensionName = News pluginName = Pi1 switchableControllerActions { Tag { 1 = list } } settings < plugin.tx_news.settings settings { listPid = 73 # here you tagse source page/folder } } 
  2. Its beter to use Type "Innernal link". 最好使用“内部链接”类型。 You can select in item edit form. 您可以在项目编辑表单中选择。 Than you can add any page like contents element in your news item. 比起您可以在新闻项中添加任何类似content元素的页面。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM