[TYPO3-project-formidable] About the lister in v0.59
FS
fs.nospam1 at a-e-r.org
Fri Sep 8 09:18:50 CEST 2006
Here are some corrected answers for my previous questions :
Question 1
-> there is an inversion in the parameters (strange idea in the
programming of FORMidable that can no more be changed!!!).
The next code works fine there
<callback>
<userobj>
<php><![CDATA[
$this->_oParent->sHTMLList = $aParams["HTML"];
]]></php>
</userobj>
</callback>
Question 2
-> the syntax is not correct : instead of array("NEW"), it should be
something like $this->_oParent->prefixId."[event]" => "NEW"
Question 3
-> the (renderlet + <onclick runat="server">) are not (not yet ?)
processed in the result tab of the lister.
Question 4
-> putting runat="nounours" is equivalent to runat="client"...
Only runat="server" is really processed!
--
F. SCHOSSIG, ICT Manager
Assemblée des Régions d'Europe
http://www.a-e-r.org
Le 7 sept. 06 à 13:09, FS a écrit :
> Hello the list,
>
> Here are three questions about changes in the XML/PHP code.
> Thanks for your comments!
> --
> F. SCHOSSIG, ICT Manager
> Assemblée des Régions d'Europe
> http://www.a-e-r.org
>
>
>
>
> *** Question 1
> ***************************************************************
> Is it possible to put the php code of the function _setHTMLList
> inside the <userobj> of the <callback> part in the XML of the lister ?
> <callback>
> <userobj>
> <extension>this</extension>
> <method>_setHTMLList</method>
> </userobj>
> </callback>
>
> Knowing that :
> function _setHTMLList($aData, $aParams) {
> $this->sHTMLList = $aData["HTML"];
> }
>
>
> *** Question 2
> ***************************************************************
> Ok to use a runat="server" in code in a button, but how do I get in
> wich state I am ?
> Before a debug($this->piVars) gave the information, but now this is
> empty. In the link there is a &0=NEW that apears, so it seems that
> the runat is working, but...
>
> Code of the button
> <renderlet:BUTTON name="boutonNew">
> <label>LLL:EXT:aer_registrations/pi1/
> locallang.xml:listform.new_registration.bouton</label>
> <onclick runat="server">
> <userobj>
> <php><![CDATA[ // on redirige vers la page de création
> $sUrl = t3lib_div::locationHeaderUrl(
> $this->_oParent->pi_getPageLink(
> $GLOBALS["TSFE"]->id,
> "", // target HTML : n'est plus utilisé ?
> array("NEW") // parametres querystring
> )
> );
> header("Location: " . $sUrl);
> die(); // on arrete le traitement
> ]]></php>
> </userobj>
> </onclick>
> </renderlet:BUTTON>
>
> *** Question 3
> ***************************************************************
> I would like to get back the pencil to edit a record proposed by the
> lister.
> Before, we had to do a <customtag> somethis like this
> <!--tag_delete>
> <name>buttonNew</name>
> <value>
> <userobj>
> <extension>this</extension>
> <method>_populateNew</method>
> </userobj>
> </value>
> </tag_delete-->
> the in the method.
>
> Now that we have the runat="server" is it possible to just do a
> renderlet like this (I ask the question because it seems not
> working...) ?
> <renderlet:LINK name="registEdit">
> <wrap><![CDATA[
> <a href="|">
> <img src="/fileadmin/Images/Interface/Pictos/btnEdit.gif"
> border=0 title='{LLL:EXT:aer_registrations/pi1/
> locallang.xml:listform.bouton.edit}'>
> </a> ]]>
> </wrap>
> <onclick runat="server">
> <userobj>
> <php><![CDATA[ // on redirige vers la page de modification
> $sUrl = t3lib_div::locationHeaderUrl(
> $this->_oParent->pi_getPageLink(
> $GLOBALS["TSFE"]->id,
> "", // target HTML : n'est plus utilisé ?
> array("event" => "EDIT") // parametres querystring
> )
> );
> header("Location: " . $sUrl);
> die(); // on arrete le traitement
> ]]></php>
> </userobj>
> </onclick>
> </renderlet:LINK>
>
>
> *** Question 4
> ***************************************************************
> Why is it runat="server" ? Does this mean that there could be another
> value than "server" ?
>
>
> _______________________________________________
> TYPO3-project-formidable mailing list
> TYPO3-project-formidable at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-project-
> formidable
More information about the TYPO3-project-formidable
mailing list