Campsite 2.3 User Guide

Campsite 2.3 User Guide

Select your language:  
    Search:   
<5.3.39. Logout        5.3.41. Edit>

Print / Download:
Available languages: english Last update: 2005-08-04 13:22:56

5.3.40. Search

Purpose:

Generate the search form and data fields.

Syntax:

Search <template_name> <button_name>
<list_of_instructions>
EndSearch

  • <template_name> is the name of the next template to be requested from search form.

  • <button_name> is the name of the button for submitting the form.

The list of instructions may contain any instruction allowed in the current context. If it is used inside another list it must respect the constraints of the list (List Issue, List Section, List Article).

Constraints:

Can not be used within itself (e.g. search in search).


add a note add a note User Contributed Notes
5.3.40. Search
Paul Baranowski  paul at paulbaranowski dot org
Tuesday 13th of September 2005 01:40:00 PM
Here's a hack to adjust the CSS styles for the autmatically-generated text input field and button. If you have something like this:

<!** Search index.tpl Search>
<!** Edit Search keywords>
<!** EndSearch>

Then you can do this to adjust the styles:

<script>

// For the text field
document.forms.search.SearchKeywords.style.border = "1px solid black";
document.forms.search.SearchKeywords.style.font = "8pt Verdana";

// For the button
document.forms.search.search.style.border = "1px solid black";
document.forms.search.search.style.font = "bold 8pt Verdana";

</script>

<5.3.39. Logout 5.3.41. Edit>

  Last update: 2005-08-04 13:22:56
Website powered by Docmint Last update: 2005-08-04 13:22:56
Total page time: 1.08704304695