[TYPO3-dev] t3lib_BEfunc::editOnClick

Peter Russ peter.russ at 4many.net
Wed Oct 28 11:24:47 CET 2009


--- Original Nachricht ---
Absender:   Christian Tauscher
Datum:       27.10.2009 18:53:
> 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.

Just an idea: t3lib_BEfunc is PHP notation. Does Javascript know what to do?

Peter.

-- 
Fiat lux! Docendo discimus.
_____________________________
uon GbR

http://www.uon.li
http://www.xing.com/profile/Peter_Russ




More information about the TYPO3-dev mailing list