new_topic_link

NAML documentation   Watch a video
   Usages of this macro
... in new_topic_link.naml
1
2
3
4
<override_macro name="new_topic_link" requires="node" dot_parameter="text" parameters="title, class, href">
    <n.set_var
Binary
Namespace: BasicNamespace
Parameters: name, value
. name="href"><n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
 text="[n.href/]" to="[n.new_topic_path
Macro
Requires: node
Parameters: type
/]" /></n.set_var.>
    <a href="[n.var
Binary
Namespace: BasicNamespace
Parameters: name
 name='href'/]" class="[n.class/]" title="[n.title/]" rel="nofollow" accesskey="t"><n.text/></a>
</override_macro>
Overrides default macro
... in utilities.naml
482
483
484
485
<macro name="new_topic_link" requires="node" dot_parameter="text" parameters="title, class, href">
    <n.set_var. name="href"><n.default text="[n.href/]" to="[n.new_topic_path/]" /></n.set_var.>
    <a href="[n.var name='href'/]" class="[n.class/]" title="[n.title/]" rel="nofollow"><n.text/></a>
</macro>