Soap Webservice 解析 iPhone UIWebView 的 Typo3 链接
目前我正在开发一个iPhone应用程序,它从公司的网站和数据库加载数据,所以我用soap编写了一个web服务来加载数据。
该网站是作为 Typo3 创建的(不是我创建的)。现在,在加载数据时,我遇到了内容内部链接的问题。其中大多数只是 PDF 的链接。 由于 Typo3 在内容中以不同的方式存储链接,我必须将它们解析到我的 web 服务,以便 iPhone 可以正确显示它们...
是否有一个 php 类可以将 Typo3 链接解析回 html 链接?
你们中有人有这方面的经验吗? 任何帮助将不胜感激。
Currently I am working on an iPhone Application, which loads the Data from the company's website and Database, so I wrote a webservice with soap to load the data.
The Website has been created (not from me) as a Typo3. Now when loading the Data, I have problems with links inside the content. Most of them are just Links to a PDF.
Since Typo3 is storing the links in a different way in the content, I have to parse them to my webservice, so that the iPhone can display them correctly...
Is there a php class out there which parses Typo3 links back to html links?
Does anyone of you have any experience in this?
Any help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解析链接是在
typo3/sysext/cms/tslib/class.tslib_content.php
中完成的。有问题的方法是http_makelinks
(〜第 4780 行)内容中的链接有以下结构:
其中 DESTINATION 可以是
mailto:
(其他属性是HTML属性)
不幸的是,类
tslib_content
有很多依赖项(也对当前页面模板的打字稿) ,所以实例化它来使用它的方法是不可行的。Parsing the links is done in
typo3/sysext/cms/tslib/class.tslib_content.php
The method in question ishttp_makelinks
in (~ line 4780)Links within the content have the following structure:
Where DESTINATION can be
mailto:
(The other attributes are HTML attributes)
Unfortunately the class
tslib_content
has a lot of dependencies (also to typoscript of the current page template), so it's not feasible to instantiate it to use its methods.