AnsweredAssumed Answered

Freemarker templates + URL parameters

Question asked by simon on Jun 15, 2006
Latest reply on Jun 16, 2006 by simon
Hi,

I build a presentation template in Freemarker. It's actually only one method that accepts different parameters to launch some Lucene search query and returns the result as an HTML list. So far, so good.

The parameters are defined in the beginning of my template file so I need to build another template to change these parameters (don't want to display multiple lists on the same page). I'll probably need around 10 different searches so it would be better to get these paramters from the URL.

In this way I can build a seach query just by adding the right parameters like I would do in any web scripting language. Any thoughts?

Outcomes