map_topic

NAML documentation   Watch a video
   Usages of this macro
... in url_mapper.naml
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<macro name="map_topic" requires="url_mapper">
    <n.regex
Binary
Namespace: BasicNamespace
Parameters: pattern, text, do
 text="[n.path
Binary
Namespace: UrlMapperNamespace
/]">
        <pattern>
            -t(d|c|t)(\d+)(?:i(\d+))?(?:ef\d+)?\.html$
        </pattern>
        <do>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.find
Binary
Namespace: RegexNamespace
>
                <then>
                    <n.set_parameter_char_if_found
Macro
Requires: url_mapper, regex
Parameters: name, char, value, group
 name="view" group="1" char="d" value="classic" />
                    <n.set_parameter_char_if_found
Macro
Requires: url_mapper, regex
Parameters: name, char, value, group
 name="view" group="1" char="c" value="list" />
                    <n.set_parameter_char_if_found
Macro
Requires: url_mapper, regex
Parameters: name, char, value, group
 name="view" group="1" char="t" value="threaded" />
                    <n.set_parameter_to_found
Macro
Requires: url_mapper, regex
Parameters: name, group
 name="node" group="2" />
                    <n.set_parameter_if_found
Macro
Requires: url_mapper, regex
Parameters: name, group
 name="index_record" group="3" />
                    <n.set_parameter
Binary
Namespace: UrlMapperNamespace
Parameters: name, value
 name="macro" value="topic" />
                    <n.exit
Binary
Namespace: BasicNamespace
/>
                </then>
            </n.if.find>
        </do>
    </n.regex>
</macro>
Feedback, Links, Privacy, Rules, Support, About