[Templates] Replace with case insensitive
Emmanuel Quevillon
tuco at pasteur.fr
Mon Mar 3 09:08:06 GMT 2008
Hi,
I am using TT to render DB output from search query box.
As I allow insensitive search, I'd like to bold the search
term in the output html page.
I can do it using replace vmethod but I did not find any
insensitive option to render it:
[% entry.dbid.replace(query, "<b>$query</b>") %]
If the query is "foo" and the db value is "Foo", the
replace doe snot work.
Does it exist a way to allow this functionality?
Thanks
Regards
--
-------------------------
Emmanuel Quevillon
Biological Software and Databases Group
Institut Pasteur
+33 1 44 38 95 98
tuco at_ pasteur dot fr
-------------------------
More information about the templates
mailing list