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.
Parsing the links is done in
typo3/sysext/cms/tslib/class.tslib_content.phpThe method in question ishttp_makelinksin (~ 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_contenthas a lot of dependencies (also to typoscript of the current page template), so it’s not feasible to instantiate it to use its methods.