topic_meta

NAML documentation   Watch a video
   Usages of this macro
... in harvey.naml
1
2
3
4
5
6
7
8
<override_macro name="topic_meta" requires="node_page,servlet">
  <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.id
Binary
Namespace: UserNamespace
/]" value2="[n.harvey_id
Macro
/]">
    <then>
      <META NAME="robots" CONTENT="noindex,nofollow"/>
    </then>
    <else.overridden/>
  </n.if.equal>
</override_macro>
Overrides default macro
... in topic.naml
183
184
185
186
187
188
189
190
191
192
193
194
195
<macro name="topic_meta" requires="node_page,servlet">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.topic_view
Macro
Requires: servlet
/]" value2="[n.classic_view
Macro
/]">
        <then>
            <n.topic_meta_description
Macro
Requires: node_page
/>
            <n.topic_meta_keywords
Macro
Requires: node_page
/>
        </then>
        <else>
            <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name='canonical_url'><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.topic_path
Macro
Requires: node
Parameters: view, index_record, selected_id
 view="[n.classic_view
Macro
/]"/></n.set_var.>
            <link rel="canonical" href="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='canonical_url'/]" />
            <META NAME="robots" CONTENT="noindex,follow"/>
        </else>
    </n.if.equal>
</macro>