无法获取要在 Drupal 视图模块中显示的字段
我在视图模块中有一个视图设置,用于输出节点的 RSS 提要。在“字段”部分中,我已指定要在提要中包含标题、日期和正文,但“视图”似乎忽略了除标题(以及我未指定包含的链接)之外的所有内容。我知道它正在使用视图模块,因为如果我删除每个项目的标题或重命名整个提要,它就会反映在实际提要中。我认为也没有任何 tpl 文件限制输出,但我不知道所有要查找的地方。这听起来很熟悉吗?
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" >
<channel>
<title>RSS Feed Title</title>
<description>...</description>
<link>http://...</link>
<item>
<title>Title</title>
<link>http://...</link>
</item>
<item>
<title>Title</title>
<link>http://...</link>
</item>
.
.
.
I have a view setup in the Views module that outputs an RSS feed of nodes. In the Fields section I have specified that I want the Title, Date and Body in the feed, but Views seems to ignore all but the title (and the link which I haven't specified to include). I know it's using the Views module because if I remove the title for each item or rename the entire feed it is reflected in the actual feed. I don't think there's any tpl files that are restricting the output either, but I don't know all the places to look. Does this sound familiar?
<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" >
<channel>
<title>RSS Feed Title</title>
<description>...</description>
<link>http://...</link>
<item>
<title>Title</title>
<link>http://...</link>
</item>
<item>
<title>Title</title>
<link>http://...</link>
</item>
.
.
.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
单击Feed显示选项卡。在基本设置下,单击行样式的齿轮图标。检查显示类型并将其设置为仅标题以外的其他内容。
您可能还想查看Views RSS 模块。它为您可以在 feed 中包含的内容提供了更大的灵活性。它对于在 feed 中包含 CCK 字段特别有用。
Click on the Feed display tab. Under Basic settings, click on the gear icon for th Row style. Check the Display type and set it to something other than Title only.
You may also want to check out the Views RSS module. It provides more flexibility in terms of what you're able to include in the feed. It's especially useful for including CCK fields in the feed.