[TYPO3-project-formidable] Renderlet:LISTER pass variables
Jerome Schneider
typo3dev at ameos.com
Wed Mar 12 10:16:39 CET 2008
Hi Benjamin,
It's possible to make the searchform use get-params in your application,
using paramsFromGet="true" on renderlet:SEARCHFORM.
I placed an example here:
http://formidable.typo3.ug/pastebin/snippet/27.html
You'll have to pass parameters like this in the url:
?myformid[mysearchrdt]=myvalue
Btw, this url-syntax is also valid to pass GET params to any other
renderlet, wether they're in a searchform or not.
Note, prob bug: I just noticed that using paramsFromGet="true" will make
the searchform blind to POST params, which is not good IMHO.
Best regards,
Jerome Schneider
Benjamin Fischer a écrit :
> Dear Formidable Community,
>
> first of all I would like to thank the Ameos TYPO3 Dev Team and all the
> other developers who contributed in the great progress of Formidable. I
> tried to keep track of all the new developments in the last year and
> finally had a client project where I could use this framework. In the
> last two days I started to work on a search/list application to display
> the entries of a tracking log to display user interaction. Thanks to
> Formidable I was able to accomplish most of the features in only two
> days and already have a working demo application.
>
> I have a question concerning the passing of variables to a search-form
> and renderlet:LISTER. I am trying to send some variables with GET
> parameters to be able to access search results with a special link. For
> example on a user-page a link to all the e.g. uploads of this user. The
> link should be something like
> index.php?id=144&report[keyword]=JPG&report[users]=664&report[action]=4
> for all JPG by user-id 664 and action upload.
>
> I am able to pre-fill this data in the search-form with these variables
> using the special link but do not succeed in getting the right
> search-results like submitting the form with these values. I have tried
> getting the values from the parent in a userobj but unfortunately it
> changed nothing.
>
> Then I searched for Formidable applications that use this sort of
> feature and found a similar thing on http://www.30millionsdamis.fr there
> the search-word appears in the url after the first submission like:
> http://www.30millionsdamis.fr/agir-pour-les-animaux/adoptez-moi/rechercher-un-animal-a-adopter/rechercher-un-animal-a-adopter.html?&tx_ameos30madoption_recherche[fake_motsclefs]=Blanc
> changing the parameter to e.g.
> _ameos30madoption_recherche[fake_motsclefs]=Noir gets the new results an
> fills the search-form with the new keyword.
>
> Does anyone have an idea how I could develop a similar feature, and
> maybe how could it be possible to always "transport" the search features
> in the url for maybe forwarding the search result link to someone by email?
>
> Best regards, keep up the great work!
>
> Benjamin Fischer
>
More information about the TYPO3-project-formidable
mailing list