topic_html

NAML documentation   Watch a video
   Usages of this macro
... in topic_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
<override_macro name="topic_html" requires="servlet">
    <n.topic_min_html
Macro
Requires: servlet
Parameters: head, body
>
        <head>
            <n.topic_common_head
Macro
/>
            <n.topic_head
Macro
Requires: threaded_view_namespace
/>
            <n.topic_meta
Macro
Requires: node_page, servlet
/>
            <n.increment_view_count
Macro
Requires: node_page, servlet
/>
            <script type="text/javascript">
                $(document).ready(function() {
 
                subjects = $("h2.post-subject");
                
                $.each(subjects , function(i) {
                str = $(this).text();
                if(str.indexOf("Re:")>-1){
                str = str.replace(/Re: /gi, "");
                $(this).text("Re: "+str);
                }                
                });
               
                });
            </script>
        </head>
        <body>
            <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_hardcoded_notices
Macro
Requires: node_page
/>
            <n.newsflash
Macro
/>
            <n.topic_header
Macro
/>
            <n.topic_controls
Macro
Requires: forum_topic_namespace
/>
            <n.topic_contents
Macro
Requires: forum_topic_namespace
Parameters: contents
.view_contents
Macro
Requires: threaded_view_namespace
Parameters: rows
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_rows
Macro
Requires: node, forum_topic_namespace, threaded_view_namespace
/>
            <n.topic_footer
Macro
/>
        </body>
    </n.topic_min_html>
</override_macro>
Overrides default macro
... in topic.naml
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<macro name="topic_html" requires="servlet">
    <n.topic_min_html>
        <head>
            <n.topic_common_head/>
            <n.topic_head/>
            <n.topic_meta/>
            <n.increment_view_count/>
        </head>
        <body>
            <n.page_node.topic_hardcoded_notices/>
            <n.newsflash/>
            <n.topic_header/>
            <n.topic_controls/>
            <n.topic_contents.view_contents.page_node.topic_rows/>
            <n.topic_footer/>
        </body>
    </n.topic_min_html>
</macro>