External links in field bodytext have rtekeep in it
I am not sure, if this is really a bug: I have imported feeds with default mapping.
Every feed contains a "more"-Link, which leads to the external url.
In frontend in single view of one of these imported records, this more-Link is correctly displayed. But: it does not open in a new window.
The reason for this is, that the link has an additional parameter rtekeep=1 like in this example:
[<a href="http://www.aktiencheck.de/exklusiv/Artikel-Maltas_Ministerpraesident_Berlin_Mittelmeerraum_Fokus-6271047" data-htmlarea-external="1" rtekeep="1">mehr</a>]</p>
If I delete this parameter manually, link opens in new windows as configured globally.
So: why does the importer add this rtekeep-paramter? Is this a bug or a feature? Could I remove it?
#1 Updated by Xavier Perseguers almost 5 years ago
Hi, first of all you must know I don't really support this extension anymore. I contributed to it a few years back but I've no use of it anymore so it's more or less in a "as-is" state.
Your problem may be related to the title attribute. See #15061 and http://typo3-english.typo3.narkive.com/dxFXHCk7/links-with-title-and-consequences.
#2 Updated by Christian Clemens almost 5 years ago
Thank you for your answer, Xavier.
I have solved the problem by changing file class.tx_ttnewsrssimport_api.php. The problem is, that links in the feed are imported with normal html syntax, means a link is saved in db with <a href...>.
I added some lines to search for all a-Tags and change them into link-Tags:
$item[$part] = str_replace ( "<a href=" , "<link " , $item[$part] ); // Convert <a>-Tags to <link>-Tags
$item[$part] = str_replace ( "</a>" , "</link>" , $item[$part] ); // to avoid automatically added rtekeep=1
In the elseif-block in line 202.
Don't know if this works in any case, but in my test case it does.
I can send you the whole file, Xavier, if you want to implement, too.