Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Thank you, thank you, thank you!! That worked! Antonio Oliver Rowlands wrote: > Hi Antonio, > > Just make sure you parse the RTE content through 'pi_RTEcssText' in your > plugin before outputting it on the FE, for example: > > $markerArray['###CONTENT###'] = $this->pi_RTEcssText($row['content'])

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Oliver Rowlands
Hi Antonio, Just make sure you parse the RTE content through 'pi_RTEcssText' in your plugin before outputting it on the FE, for example: $markerArray['###CONTENT###'] = $this->pi_RTEcssText($row['content']); Where $row['content'] is your RTE field. Best regards, Oliver Antonio Reher wrote: >

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Hi all, once again, thanks for helping me... i was getting desperate. I fooled around with the definition of the fields in TCA.php of my extension directory and got some progress. If I substituted richtext[*] with richtext[*]:rte_transform[mode=ts] images were transformed correctly, but now wha

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Oliver Rowlands
Hi Antonio, It is normal that the field appears twice. In the ["types"]["0"] array replace: entradilla_es;;;richtext[*] by: entradilla_es;;;richtext[paste|bold|italic|underline|formatblock|class|left|center|right|orderedlist|unorderedlist|outdent|indent|link|image]:rte_transform[mode=ts] You

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
I'm looking at TCA.php in my extension directory and the problem field is mentioned twice: "entradilla_es" => Array ( "exclude" => 1, "label" => "LLL:EXT:safelayer/locallang_db.xml:tx_safelayer_eventos.entradilla_es", "config" => A

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Hi again, I've done the test and if I input an image via an RTE in a templavoila page, no problem. It transforms src to relative, as expected. When I do it, however, via any table created via the Extension Kickstarter, it replaces the src tag with an absolute address. Do you know where I can conf

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Oliver Rowlands
Hi Antonio, That is indeed the case, try it for yourself by inserting an image inside a standard 'Regular text' content element RTE then comparing it to the actual DB value. Did you create your extension using the Extension Kickstarter? If not make sure the correct 'rte_transform[mode=ts]' con

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Any ideas as to why this might be, Oliver? Antonio Antonio Reher wrote: > Hi Oliver: > thanks for your answer. I'm using an RTE in an object of a database > table created in a frontend extension. When I add an image, the src > attribute is absolute, but so is the entry in the database when I sa

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Hi Oliver: thanks for your answer. I'm using an RTE in an object of a database table created in a frontend extension. When I add an image, the src attribute is absolute, but so is the entry in the database when I save... Shouldn't it change to a relative reference? That's what I understand from

Re: [TYPO3] RTE keeping absolute src's

2008-05-20 Thread Oliver Rowlands
Hi Antonio, Do you mean the image 'src' attribute is absolute in the HTML you can see in the RTE or in the tt_content 'bodytext' column in mySQL? TYPO3 applies content transformation in-between the RTE and the DB and the DB and the FE [1], the absolute links should not be a problem. Best regar

[TYPO3] RTE keeping absolute src's

2008-05-20 Thread Antonio Reher
Hi all: I have a problem with the RTE in TYPO3... when I upload an image and then save, the src in the database is kept as an absolute address. Shouldn't this be relative? Thanks, Antonio ___ TYPO3-english mailing list TYPO3-english@lists.netfielders.d