开发者

Drupal RSS feed links

开发者 https://www.devze.com 2022-12-19 09:25 出处:网络
I\'m creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed?

I'm creating some feeds of news items and such. These items have URL aliases set for them. Is there a reason why the URL alias do not get used in the RSS feed?

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. So the incorrect link comes somewhere afte开发者_如何学运维r 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. Just in case, here it's a nice tutorial about how to do a feed with Views http://drupal.org/node/314097

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号