[TYPO3-project-formidable] Some more points
FS
fs.nospam1 at a-e-r.org
Fri Sep 8 09:47:32 CEST 2006
Again I answer my questions (after a talk with Ameos)...
This is always in FORMidable v0.59 (it seems to be that the v0.6 is
coming close to come out realy soon!).
Question 1
There is a mistake in the code given in my last mail. It is possible
to read the content of $aParams in the XML code. This is only because
it is the name of this variable in the FORMidable php code. This
should stay like that: so it can be used. See the code further.
Question 2
Impossible to do it like this, and this should not be added to
FORMidable. So the way of doing this is through the use of the
fuction _getLLLabel (see the code).
Code:
<tag_edit>
<name>registrationEdit</name>
<value>
<userobj>
<php><![CDATA[
$link = $this->_oParent->pi_getPageLink(
$GLOBALS["TSFE"]->id,
"",
array(
$this->_oParent->prefixId."[event]" => "EDIT",
$this->_oParent->prefixId."[uid]" => $aParams["row"]
["uid"]
)
);
$title = $this->_getLLLabel("LLL:EXT:aer_registrations/pi1/
locallang.xml:listform.bouton.edit");
return (
'<a href="'.$link.'">
<img src="/fileadmin/Images/Interface/Pictos/
btnEdit.gif" border=0 title="'.$title.'">
</a>');
]]></php>
</userobj>
</value>
</tag_edit>
--
F. SCHOSSIG, ICT Manager
Assemblée des Régions d'Europe
http://www.a-e-r.org
Le 7 sept. 06 à 16:53, FS a écrit :
> In the next XML code, there are two points :
>
> 1. The $aParams is clearly not yet available. Is this accessible from
> somewhere else ?
> Or this will be in the 0.6...
>
> 2. The {LLL:EXT:aer_registrations/pi1/
> locallang.xml:listform.bouton.edit} in the title is not replaced.
>
> Bonne soirée !
>
> <tag_edit>
> <name>registrationEdit</name>
> <value>
> <userobj>
> <php><![CDATA[
> $link = $this->_oParent->pi_getPageLink(
> $GLOBALS["TSFE"]->id,
> "",
> array(
> $this->_oParent->prefixId."[event]" => "EDIT"//,
> $this->_oParent->prefixId."[uid]" => $aParams["row"]
> ["uid"]
> )
> );
> return (
> '<a href="'.$link.'">
> <img src="/fileadmin/Images/Interface/Pictos/
> btnEdit.gif" border=0
> title="{LLL:EXT:aer_registrations/pi1/
> locallang.xml:listform.bouton.edit}">
> </a>');
> ]]></php>
> </userobj>
> </value>
> </tag_edit>
>
> --
> F. SCHOSSIG, ICT Manager
> Assemblée des Régions d'Europe
> http://www.a-e-r.org
More information about the TYPO3-project-formidable
mailing list