[Typo3] Insert records from FE

Elmar Hinz elmar.hinz at vcd-berlin.de
Tue Oct 11 19:29:27 CEST 2005


Leo Barrientos C. wrote:
> Hello, how can i insert records from the front end using typo3 api?
> I want to implement it in the same way like in the backend.
> 
> See ya.

Hi Leo,

from idea you are quite right to do it in the same way as in the BE. But 
still the concept of TYPO3 makes differences between FE and BE.

The official modern way is:

http://typo3.org/documentation/document-library/doc_core_cgl/Introduction-74bbc0ebf2/
http://typo3.org/documentation/document-library/doc_core_cgl/Using_the_wrapper_cl/

I think funktions of tslib/class.tslib_content.php provide a more 
comfortable way, cause $TCA configuration is respected:

DBgetUpdate($table, $uid, $dataArr, $fieldList, $addSlashes=0)


See also:
http://typo3.org/documentation/document-library/doc_core_api/

Elmar


-- 
Climate change 2005: Guatemala, New Orleans, Sahel, Bangladesh, Spain, 
Portugal, Austria, Swiss, France, ...
Production of CO2 is killing people.
Production of CO2 just for fun is killing people just for fun.



More information about the TYPO3-english mailing list