简体   繁体   English

表达式引擎php框架

[英]Expression Engine php framework

how to parse rss feed for latest news and read more this content in expression engine ? 如何解析RSS供稿以获取最新新闻,并在表达式引擎中阅读更多此内容?

I have done parse to rss feed but I need to whole content so I has to use read more button but when we click on this it redirect to another website but I need to direct on my site only. 我已经解析了RSS提要,但是我需要完整的内容,因此我必须使用“阅读更多”按钮,但是当我们单击此按钮时,它会重定向到另一个网站,但是我只需要直接在我的网站上定向。

RSS feed is an xml file. RSS feed是一个xml文件。 To parse, and make changes in it you can use any xml library, for example: 要解析并对其进行更改,可以使用任何xml库,例如:

simpleXml simpleXml

You should also check Xml Manipulation section in php docs 您还应该检查php文档中的“ Xml操作”部分

Have you looked at the Magpie plugin that comes with EE? 您是否看过EE随附的Magpie插件?

If that doesn't do everything you need have a look at the third party Feed Parser 如果这样做不能满足您的所有需求,请查看第三方Feed分析器

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

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