search_page_html

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "search_page_html".
... in search_page_html.naml
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
<override_macro name="search_page_html" requires="servlet">
    <n.define_search_query_field/>
    <n.node_page.search_namespace.>
        <n.set_var name='didSearch' value="false" />
        <n.catch_exception. id="search-block">
            <n.do_search_using_params />
            <n.set_var name='didSearch' value="true" />
        </n.catch_exception.>
        <n.html>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.search_page_title/>
                <n.set_cookies did_search="[n.var name='didSearch'/]" />
                <n.search_page_style/>
            </head>
            <body>
                <n.show_search_form/>
                <n.show_search_error/>
                <n.search_results_header/>
 
                <n.results.loop.current_node.>
                    <n.comment.>do not include chat notices section in search results</n.comment.>
                    <n.if.not.equal value1="[n.current_node.get_app_node.id/]" value2="5514">
                        <then><n.search_result_row/></then>                    
                    </n.if.not.equal>
                </n.results.loop.current_node.>
 
                <n.search_pagination/>
 
                <n.if.not.lucene_is_ready>
                    <then.index_rebuilt_notice/>
                </n.if.not.lucene_is_ready>
 
                <n.if.has_results>
                    <then.show_search_form/>
                </n.if.has_results>
            </body>
        </n.html>
    </n.node_page.search_namespace.>
</override_macro>
Overrides default macro
... in search.naml
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
<macro name="search_page_html" requires="servlet">
    <n.define_search_query_field/>
    <n.node_page.search_namespace.>
        <n.set_var name='didSearch' value="false" />
        <n.catch_exception. id="search-block">
            <n.do_search_using_params />
            <n.set_var name='didSearch' value="true" />
        </n.catch_exception.>
        <n.html>
            <head>
                <meta name="robots" content="noindex,nofollow"/>
                <n.search_page_title/>
                <n.set_cookies did_search="[n.var name='didSearch'/]" />
                <n.search_page_style/>
            </head>
            <body>
                <n.show_search_form/>
                <n.show_search_error/>
                <n.search_results_header/>
 
                <n.results.loop.current_node.>
                    <n.search_result_row/>
                </n.results.loop.current_node.>
 
                <n.search_pagination/>
 
                <n.if.not.lucene_is_ready>
                    <then.index_rebuilt_notice/>
                </n.if.not.lucene_is_ready>
 
                <n.if.has_results>
                    <then.show_search_form/>
                </n.if.has_results>
            </body>
        </n.html>
    </n.node_page.search_namespace.>
</macro>