[TYPO3] serach box with multiple language
rupali.ffm at googlemail.com
rupali.ffm at googlemail.com
Tue Sep 16 17:58:23 CEST 2008
Hello list,
i need to show "search" as default text for english language and "suche" as
default text for german language in macina_search box, following is the
template i used, but i dont know how to change the dafault value to search
in case of english language. pls help..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Template file for the"macina_searchbox"extension.</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<script>
</head>
<body>
<h3>Template file for the "macina_searchbox" extension.</h3>
<p><b>Available Markers:</b></p>
<ul>
<li>###HEADLINE### Displays the Headline</li>
<li>###ADVANCED### Advanced Search Link</li>
<li>###SUBMIT### Alttext for the submit button</li>
<li>###ACTLANG### UID of the actual language</li>
<li>###SEARCHPID### PID of the Searchpage</li>
</ul>
<!-- ###TEMPLATE### begin -->
<form action="###SEARCHPID###" method="post" name="searchform"
id="searchform" style="margin:0px; padding-top:10px; ">
<input name="tx_indexedsearch[sword]" type="text" value
="Suche" id="searchbox" onfocus="this.value = (this.value=='Suche')? '' :
this.value;" style="height:12px; width:150px; font-size:9px;
background:#cccccc;padding-left:3px;border:1px solid #e6e8e9;
color:#666666;padding-bottom:1px;" />
<input class = "go" name="tx_indexedsearch[submit_button]"
type="submit" style ="height:17px; width:17px;" value="" />
<input type="hidden" name="tx_indexedsearch[_sections]"
value="0" />
<input type="hidden" name="tx_indexedsearch[pointer]"
value="0" />
<input type="hidden" name="tx_indexedsearch[ext]" value="0"
/>
<input type="hidden" name="tx_indexedsearch[lang]"
value="###ACTLANG###" />
</form>
<!-- ###TEMPLATE### end -->
</body>
</html>
TS is as follows:
page.config.index_enable = 1
lib.suche < plugin.tx_macinasearchbox_pi1
lib.suche{
pidSearchpage = 81
templateFile = fileadmin/templates/searchbox.tmpl
}
More information about the TYPO3-english
mailing list