search_form

NAML documentation   Watch a video
   Usages of this macro
... in search_form.naml
1
2
3
4
5
6
7
8
9
10
<override_macro name="search_form" dot_parameter="do" parameters="style,query,author,days" requires="node">
    <form style="[n.style/]" action="/template/NamlServlet.jtp">
        <input type="hidden" name="macro" value="search_page" />
        <input type="hidden" name="node" value="[n.id
Binary
Namespace: NodeNamespace
/]" />
        <n.hidden_field
Macro
Parameters: name, default_value, value
 name="query" value="[n.query/]" />
        <n.hidden_field
Macro
Parameters: name, default_value, value
 name="author" value="[n.author/]" />
        <n.hidden_field
Macro
Parameters: name, default_value, value
 name="days" value="[n.days/]" />
        <n.do/>
    </form>
</override_macro>
Overrides default macro
... in search.naml
378
379
380
381
382
383
384
385
386
387
<macro name="search_form" dot_parameter="do" parameters="style,query,author,days" requires="node">
    <form style="[n.style/]" action="/template/NamlServlet.jtp">
        <input type="hidden" name="macro" value="search_page" />
        <input type="hidden" name="node" value="[n.id/]" />
        <n.hidden_field name="query" value="[n.query/]" />
        <n.hidden_field name="author" value="[n.author/]" />
        <n.hidden_field name="days" value="[n.days/]" />
        <n.do/>
    </form>
</macro>