[TYPO3-project-formidable] Newby question
Jerome Schneider
typo3dev at ameos.com
Mon Mar 17 18:38:43 CET 2008
Hi Albert,
You may use a datahandler:DB with tablename and keyname properly set.
To edit a particular uid with this, you'll have to pass it as the third
argument of init() in your plugin code
And renderlets should be set as readonly=true
Best regards,
Jerome
Albert van der Veen a écrit :
> Hi all,
>
> First of all a big thank you to the people of Ameos for putting together
> this great extension :)
>
> Having just started using it, I seem to be overlooking something
> obvious: how to configure the 'singleview' (that is the details of a
> single record) in an elegant way.
> There is the renderlet:LISTER that I'm using to list records, but how to
> pass the uid from one record and force the display of the detailview of
> that record?
> Something like majixRequestEdition, that's used to edit a record. But
> there's no majixRequestSingleview :)
>
> I have used a construct like below to render a link and the check in my
> plugin if the var 'singleview' is set, but that feels like kinda 'ugly'.
>
> <column name="singlelink" type="renderlet:LINK"
> label="singlelink">
> <url>
> <userobj>
> <php><![CDATA[
>
> $aRowData =
> $this->oDataHandler->_getListData();
>
> return t3lib_div::locationHeaderUrl(
> $this->_oParent->pi_getPageLink(
> $GLOBALS["TSFE"]->id,
> "",
> array("singleView" => true,
> "uid" => $aRowData['uid']
> )
> )
> );
>
> ]]></php>
> </userobj>
> </url>
> </column>
>
>
>
> Any help much appreciated!
>
> grtz,
> Albert van der Veen
>
More information about the TYPO3-project-formidable
mailing list