http://bacaberita.info/
HOME I NASIONAL I INTERNASIONAL I EKONOMI I OLAHRAGA I HIBURAN I IPTEK I INDEKS

news_table

NAML documentation   Watch a video
   Usages of this macro
... in news_table.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
<override_macro name="news_table">
    <table id="news-table" class="news-table medium-border-color">
        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topics_list
Macro
Requires: node
Parameters: filter, start, length, sort, do
.
            sort="pinned-and-root-node-date"
            start="[n.app_index_record
Macro
Requires: servlet
/]"
            length="[n.app_rows_per_page
Macro
Requires: node_page
/]"
            filter="[n.app_topic_filter
Macro
Requires: node_page, servlet
/]"
        >
            <n.handle_empty_newspaper
Macro
Requires: node_list, node_page
/>
            <n.loop
Macro
Requires: sequence
Parameters: by, do
.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                <tr>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_thumbnail
Binary
Namespace: NodeNamespace
>
                        <then>
                            <td class="news-row light-border-color" style="vertical-align:top">
                                <n.news_text_cell
Macro
Requires: node
/>
                            </td>
                        </then>
                        <else>
                            <td class="news-row light-border-color" style="vertical-align:top" colspan="2">
                                <n.news_text_cell
Macro
Requires: node
/>
                            </td>
                        </else>
                    </n.if.has_thumbnail>
                </tr>
            </n.loop.current_node.>
        </n.page_node.topics_list.>
    </table>
</override_macro>
Overrides default macro
... in view_news.naml
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
<macro name="news_table">
    <table id="news-table" class="news-table medium-border-color">
        <n.page_node.topics_list.
            sort="pinned-and-root-node-date"
            start="[n.app_index_record/]"
            length="[n.app_rows_per_page/]"
            filter="[n.app_topic_filter/]"
        >
            <n.handle_empty_newspaper/>
            <n.loop.current_node.>
                <tr>
                    <n.if.has_thumbnail>
                        <then>
                            <td class="news-row thumbnail-cell light-border-color">
                                <n.thumbnail_box/>
                            </td>
                            <td class="news-row light-border-color" style="vertical-align:top">
                                <n.news_text_cell/>
                            </td>
                        </then>
                        <else>
                            <td class="news-row light-border-color" style="vertical-align:top" colspan="2">
                                <n.news_text_cell/>
                            </td>
                        </else>
                    </n.if.has_thumbnail>
                </tr>
            </n.loop.current_node.>
        </n.page_node.topics_list.>
    </table>
</macro>
loading...