Scenario:
"I want to change the text on the search button, where can I find this? I found nothing in the templates or skin section so far!"
Solution:
All of Nucleus' forms are controlled by the .template files located inside the \nucleus\forms\ directory. In this example, we are looking for the searchform.template file.
The inside of the searchform.template file looks like this:
<form method="get" action="<%self%>"> <div class="searchform"> <input name="query" class="formfield" size="10" maxlength="60" accesskey="4" value="<%formdata(query)%>" /> <input type="hidden" name="amount" value="0" /> <input type="hidden" name="blogid" value="<%formdata(id)%>" /> < br />* <input type="submit" value="<%text(_SEARCHFORM_SUBMIT)%>" class="formbutton" /> </div> </form>
*space inserted to prevent code parsing.
The search button text is controlled by the attribute value in this line:
<input type="submit" value="<%text(_SEARCHFORM_SUBMIT)%>" class="formbutton" />
Change the value attribute (by default <%text(_SEARCHFORM_SUBMIT)%>) to the text you want to appear on the search button. For example, changing the line to this:
<input type="submit" value="Go!" class="formbutton" />
will give you a button with the word "Go!" on it.
But what is this value="<%text(_SEARCHFORM_SUBMIT)%>" bit? It's a constant from your language file in the \nucleus\language\ folder. If your site is in English, then it is defined in the english.php file. You can edit that file and find the line that defines _SEARCHFORM_SUBMIT and change it there also.
Original forum thread (thanks, ftruscot!):
http://forum.nucleuscms.org/viewtopic.php?t=14236
![]()
Total votes: 2 - Rating: 6.00