[TYPO3-project-formidable] Syntax question / feature
François SCHOSSIG
f.schossig at a-e-r.org
Mon Aug 28 15:05:34 CEST 2006
There are several ways...
- insert the PHP code of your search directly in the XML,
- put a function in the extension php file and execute it from the
XML like in the example.
<renderlet:LISTBOX name="repas_regime_alimentaire">
<label>
<userobj>
<php><![CDATA[ return $this->_oParent->flexConf
["repas_regime_alimentaire"]; ]]></php>
</userobj>
</label>
<data>
<userobj>
<php><![CDATA[ return $this->_oParent->_populateFromGlossary
(7); ]]></php>
</userobj>
</data>
</renderlet:LISTBOX>
--
F. SCHOSSIG, ICT Manager
Assemblée des Régions d'Europe
http://www.a-e-r.org - +33 (0)3 88 22 07 07
Le 28 août 06 à 14:47, Radu Cocieru a écrit :
> Hi !
>
> Is there a way to populate the LISTBOX renderlet with some data
> from the DB
> aside from using the userobj tag ?
>
> I am developing a generic list and edit forms, configurable from
> TS/FlexForm, so I would like to be able to populate a LISTBOX with
> some data
> from a table (eg. countries list) and I don't want to create a
> function for
> that.
>
> So in case there is no way to do this in the current set-up I am
> going to
> create a new LISTBOX renderlet that will accept a "dataProvider"
> which will
> be able to query the given Table and return the results for the
> LISTBOX
> renderlet do deal with it.
>
> Is this a good way to do it ? Or should I do it in a different
> fashion.
> Think this will be useful for the community.
>
> Thanks.
> --
> Radu Cocieru
> _______________________________________________
> 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