[TYPO3-project-formidable] About the lister in v0.59
FS
fs.nospam1 at a-e-r.org
Thu Sep 7 13:09:16 CEST 2006
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" ?
More information about the TYPO3-project-formidable
mailing list