简体   繁体   English

Drupal RSS feed链接

[英]Drupal RSS feed links

I'm creating some feeds of news items and such. 我正在创建新闻条目的提要等。 These items have URL aliases set for them. 这些项目具有为其设置的URL别名。 Is there a reason why the URL alias do not get used in the RSS feed? 为什么没有在RSS feed中使用URL别名的原因?

I have a multi-language site which uses the path aliases to show correct navigation, and so when I get a 'node' link from the feed, it breaks everything. 我有一个多语言站点,该站点使用路径别名显示正确的导航,因此,当我从提要中获得“节点”链接时,它会破坏一切。

EDIT 编辑

I'm creating the rss feed as using views When I do a live preview in the view the correct link is shown. 我正在使用视图创建rss提要。在视图中进行实时预览时,将显示正确的链接。 So the incorrect link comes somewhere after that. 因此,不正确的链接会在此之后出现。

Are you creating the feeds using Views? 您是否正在使用“视图”创建供稿? if not you should do it. 如果不是,您应该这样做。 It may be happening that the code that's returning the feed is printing the links to the nodes without using the l() function so aren't being translated to the corresponding alias. 可能发生的情况是,返回提要的代码正在打印到节点的链接而未使用l()函数,因此不会被转换为相应的别名。 Just in case, here it's a nice tutorial about how to do a feed with Views http://drupal.org/node/314097 为了以防万一,这里有一个很好的教程,介绍如何使用Views进行提要http://drupal.org/node/314097

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

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