default.xml
2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="COM_SEARCH_SEARCH_VIEW_DEFAULT_TITLE" option="COM_SEARCH_SEARCH_VIEW_DEFAULT_OPTION">
<help
key = "JHELP_MENUS_MENU_ITEM_SEARCH_RESULTS"
/>
<message>
<![CDATA[COM_SEARCH_SEARCH_VIEW_DEFAULT_DESC]]>
</message>
</layout>
<!-- Add fields to the request variables for the layout. -->
<fields name="request">
<fieldset name="request" label="COM_SEARCH_FIELDSET_OPTIONAL_LABEL">
<field
name="searchword"
type="text"
label="COM_SEARCH_FIELD_LABEL"
description="COM_SEARCH_FIELD_DESC"
/>
</fieldset>
</fields>
<!-- Add fields to the parameters object for the layout. -->
<fields name="params">
<!-- Basic options. -->
<fieldset name="basic" label="COM_MENUS_BASIC_FIELDSET_LABEL">
<field
name="search_phrases"
type="list"
label="COM_SEARCH_FIELD_SEARCH_PHRASES_LABEL"
description="COM_SEARCH_FIELD_SEARCH_PHRASES_DESC"
useglobal="true"
class="chzn-color"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="search_areas"
type="list"
label="COM_SEARCH_FIELD_SEARCH_AREAS_LABEL"
description="COM_SEARCH_FIELD_SEARCH_AREAS_DESC"
useglobal="true"
class="chzn-color"
>
<option value="0">JNO</option>
<option value="1">JYES</option>
</field>
<field
name="show_date"
type="list"
label="COM_SEARCH_CONFIG_FIELD_CREATED_DATE_LABEL"
description="COM_SEARCH_CONFIG_FIELD_CREATED_DATE_DESC"
useglobal="true"
class="chzn-color"
>
<option value="0">JHIDE</option>
<option value="1">JSHOW</option>
</field>
<field
name="spacer1"
type="spacer"
label="COM_SEARCH_SAVED_SEARCH_OPTIONS"
class="text"
/>
<!-- Add fields to define saved search. -->
<field
name="searchphrase"
type="list"
label="COM_SEARCH_FOR_LABEL"
description="COM_SEARCH_FOR_DESC"
default="0"
>
<option value="0">COM_SEARCH_ALL_WORDS</option>
<option value="1">COM_SEARCH_ANY_WORDS</option>
<option value="2">COM_SEARCH_EXACT_PHRASE</option>
</field>
<field
name="ordering"
type="list"
label="COM_SEARCH_ORDERING_LABEL"
description="COM_SEARCH_ORDERING_DESC"
default="newest"
>
<option value="newest">COM_SEARCH_NEWEST_FIRST</option>
<option value="oldest">COM_SEARCH_OLDEST_FIRST</option>
<option value="popular">COM_SEARCH_MOST_POPULAR</option>
<option value="alpha">COM_SEARCH_ALPHABETICAL</option>
<option value="category">JCATEGORY</option>
</field>
</fieldset>
</fields>
</metadata>