[TYPO3] issueCommand
Artur Nankran
arturnankran at yahoo.com.br
Tue Aug 1 17:19:30 CEST 2006
Hey list,
i found an example on the guide Core API that fits nice my needs,
$params = '&cmd[tt_content]['.$row['uid'].'][delete]=1';
$out.= '<a href="'.
htmlspecialchars($GLOBALS['SOBE']->doc->issueCommand($params)).
'" onclick="'.
htmlspecialchars("return confirm('Want to delete?');").
'">Delete record</a>';
this is the one, but I also need to make it create recors,
I know it is possible using data instead of command,
so far I got this code
$params = '&data[pages][NEW9823be87] = array(
"title" => "Page 1",
"pid" => "-45") ';
$out.= '<a href="'.
htmlspecialchars($GLOBALS['SOBE']->doc->issueCommand($params)).
'">Create Record</a>';
but it just doens't work, any one know how to do it?
---------------------------------
O Yahoo! está de cara nova. Venha conferir!
More information about the TYPO3-english
mailing list