news_page_layout

NAML documentation   Watch a video
   Usages of this macro
... in news_page_layout.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<override_macro name="news_page_layout" requires="app_namespace">
    <n.column_layout
Macro
Parameters: columns
.>
        <n.column
Macro
Parameters: contents, width
. width="70%">
            <n.news_sidebar_widget
Macro
/>
        </n.column.>
        <n.column
Macro
Parameters: contents, width
. width="30%">
            <n.sidebar_widget
Macro
Requires: node_page, servlet
/>
         <ul id="leidiniai">
              <li><a href="http://labgeba.online.lt/">Labgeba</a></li>  
                 <li><a href="http://istorija.online.lt/">Istorija</a></li> 
             <li><a href="http://savivalda.online.lt/">Savivalda</a></li>
          </ul> 
       </n.column.>
    </n.column_layout.>
</override_macro>
Overrides default macro
... in view_news.naml
67
68
69
70
71
72
73
74
75
76
<macro name="news_page_layout" requires="app_namespace">
    <n.column_layout.>
        <n.column. width="70%">
            <n.news_sidebar_widget/>
        </n.column.>
        <n.column. width="30%">
            <n.sidebar_widget/>
       </n.column.>
    </n.column_layout.>
</macro>