[TYPO3-dev] other pid for alt_doc.php?
Christian Opitz - Netzelf
christian.opitz at netzelf.de
Tue Aug 25 18:48:06 CEST 2009
Hi,
i'm writing an extension that creates a module in tools. In this module
i want to let users create and edit records from a table of this extension.
For now this works fine with:
$returnUrl =
t3lib_extMgm::extRelPath('formhandlergui').'Classes/Controller/Module/index.php';
$returnUrl = urlencode($returnUrl);
$createlink =
$GLOBALS['BACK_PATH'].'alt_doc.php?returnUrl='.$returnUrl.'&edit[tx_formhandlergui_forms]['.$pid.']=new';
$buttons['save'] .= '<a
href="'.$createlink.'"><img'.t3lib_iconWorks::skinImg($GLOBALS['BACK_PATH'],
'gfx/new_el.gif', '').' alt="Create" /></a>';
As far as i know alt_doc.php needs the pid-parameter for new records.
But i'm not sure if i really want/need to relate a record in my table to
a page because it has no influence on how my extension works.
Does anyone know if i can tell alt_doc.php to use another table than
pages as relational table or does this somehow conflict with TYPO3? If
not is there another possibility to simply load a TCEForm for a table in
TCA?
Btw: In my module class in the function getButtons() i tried to add the
button above with $buttons['new'] but so it doesnt show - is there
something else i have to do to add a button via this array?
Thanks a lot and cheers,
Christian
More information about the TYPO3-dev
mailing list