[TYPO3-commerce] How to pass RTE config to commerce

Benny Schimmer bschimmer at cross-content.com
Tue Apr 27 18:02:52 CEST 2010


Hi Erik,

the typoscript option general_stdWrap seems not to be used anywhere in 
commerce as well as in the typo3-core.
So till now this option does not make any sense at all.
But it is a common parameter for other extensions like tt_news.
To make it work alike, you should add the following function to
commerce_pibase, and put every field of the database which is filled by 
the RTE through it.

function formatStr($str) {
   if (is_array($this->conf['general_stdWrap.'])) {
   $str = $this->cObj->stdWrap($str, $this->conf['general_stdWrap.']);
   }
   return $str;
  }

If you don't want to add this to the code, simply use a hook, where the 
markers are filled and use the cObj->stdWrap function


It seems that this option was once planed but never implemented.

Greetings,

Benny and Florian

Am 27.04.2010 17:24, schrieb Erik Sokoll:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Sorry guys, but meanwhile I drive crazy. I was to fast with the positive
> answer.
> But again the facts: I configured the standard RTE to accept e.g. the
> <object>  HTML tag. It works fine with all RTE-parsers (on the normal page)
> Now... after Sascha gave me the hint... the same pageTSconfig is used in
> the root template and the Commerce folders.
>
> BUT... the only thing which works from now is 'RTE writing to DB' and
> 'reading from DB' in the BackEnd RTE field. In the Frontend<object>
> becomes&lt;object&gt; ...if I want to use it in a commerce product
> description.
>
> I checked by 'web/info/page-TSconfig' and by default there is:
> <TS>
> RTE.config.tx_commerce_products.description.proc.exitHTMLparser_db.tags.font...
> (etc)
> </TS>
>
> So I added...
>
> <TS>
> RTE.config.tx_commerce_products.description.proc.exitHTMLparser_db.tags.object.allowedAttribs
> = width, height
> RTE.config.tx_commerce_products.description.proc.exitHTMLparser_db.allowTags
> =  a, abbr, acro... ...object
> </TS>
>
> ...for entryHTMLparser_db, exitHTMLparser_db and HTMLparser_db but there
> is no difference.
>
> Moreover I defined:
> plugin.tx_commerce_pi1.general_stdWrap.parseFunc<  lib.parseFunc_RTE
>
> ...wich is also used in other places e.g. here:
> tt_content.text.20.parseFunc<  lib.parseFunc_RTE
>
>
> And so what?!?
> In tt_content it works but not in commerce FE page!
>
>
> *crying*
>
> Erik
>
>
> Erik Sokoll schrieb:
>> I can't belief it... you are right!!!
>>
>> *headbang*
>>
>> The folders...
>>
>> Commerce
>>    Products
>>    Attributes
>>    Orders
>>
>> ...are BESIDE the root page and not inside.
>>
>> @Sebastian: If you are going to read this, please put it on the list!
>>
>>
>> Greetings...
>> Erik
>>
>>
>> Sascha Egerer schrieb:
>>> Am 27.04.10 11:15, schrieb Erik Sokoll:
>>> Hi people,
>>> how can I pass my "normal" RTE (rtehtmlarea) configuration to Commerce
>>> to be used in commerce RTE fields?
>>
>>> Greetings...
>>> Erik
>>
>>> You have to insert your PageTS to the Commerce Folder in the pagetree.
>>> _______________________________________________
>>> TYPO3-project-commerce mailing list
>>> TYPO3-project-commerce at lists.typo3.org
>>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>>
> _______________________________________________
> TYPO3-project-commerce mailing list
> TYPO3-project-commerce at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-commerce
>
>
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iD8DBQFL1wGiuogOZOO2WPQRAtDIAJ96Vb8TnOdYtsWklNT+JEjUYiA27QCeMiYO
> tzBJmui0hRIu8SLpYjYRxwc=
> =znn1
> -----END PGP SIGNATURE-----



More information about the TYPO3-project-commerce mailing list