app_body_header

NAML documentation   Watch a video
   Usages of this macro
... in tweaks.naml
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<override_macro name="app_body_header" requires="node_page,servlet">
    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.>
        <div id="forum-header">
            <h1 id="forum-title" class="app-title-[n.id
Binary
Namespace: NodeNamespace
/]"><n.subject
Macro
Requires: node
/></h1>
            <div id="description-box">
                <n.mailing_list_information
Macro
/>
                <n.regex_replace_all
Binary
Namespace: BasicNamespace
Parameters: pattern, text, replacement
. pattern="\{/?long-desc\}" replacement=" ">
                    <n.regex_replace_all
Binary
Namespace: BasicNamespace
Parameters: pattern, text, replacement
. pattern="\{short-desc\}.*?\{/short-desc\}" replacement=" ">
                        <n.node_message_as_html
Macro
Requires: node
/>
                    </n.regex_replace_all.>
                </n.regex_replace_all.>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box
Macro
Requires: node
/>
            </div>
        </div>
    </n.page_node.>    
</override_macro>
Overrides default macro
... in app.naml
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<macro name="app_body_header" requires="node_page,servlet">
    <n.page_node.>
        <div id="forum-header">
            <h1 id="forum-title" class="app-title-[n.id/] adbayes-content"><n.subject/></h1>
            <div id="description-box" class="adbayes-content">
                <n.mailing_list_information/>
                <n.node_message_as_html/>
            </div>
            <div id="search-box" class="search-box">
                <n.search_box/>
            </div>
        </div>
    </n.page_node.>
</macro>