[TYPO3-dev] t3lib_BEfunc::editOnClick

Christian Tauscher christian.tauscher at media-distillery.de
Tue Oct 27 18:53:55 CET 2009


Hi all there in TYPO3-country!

I've written a nice EXT. One part is a module. Records of the EXT are
listed there. I'd like to give them (like in list-module) Edit and
sorting icons. In fact it is a very cusomized list-module.

This code is adopted from the list-module of the BE. Seems to be very
easy to edit the Record:

$params = "&edit[tx_myext_table][".$this->row[uid]."]=edit";
$out = '<a href="#" onclick=".t3lib_BEfunc::editOnClick(
	$params,$this->doc->backPath,-1).'">
	<img src="edit.gif" /></a>';

(htmlspecialchars striped off due to readability)

Nicely rendered in the Module, but: No action happens.... Nothing.
Mybe the backpath is wrong: $this->doc->backPath? But this path is used
in the module many times.
No idea.... :-(

Maybe this function is limited to the list-module of the BE? Mus be used
in a different way? How?
BTW: how could I implement the sorting-Arrows in my Module?

Any hint is welcome,

Christian.




More information about the TYPO3-dev mailing list