Login  Register

I don't ask for much anymore but could really use some help

Posted by Harvey on Jun 11, 2018; 1:03am
URL: https://support.nabble.com/I-don-t-ask-for-much-anymore-but-could-really-use-some-help-tp7600732.html

I have a customization designed to remove our OFF TOPIC forum from the topics view. It looks like this:

<override_macro name="app_topic_filter" requires="node_page,servlet">
    <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]">
        <then>
            <n.separate>
                <text1.hide_null.overridden />
                <separator>and</separator>
                <text2.page_node.exclude_parent_filter parent_id="1389381" />
            </n.separate>
        </then>
        <else.overridden/>
    </n.if.equal>
</override_macro>

I want to add another forum to that rule. The id  is 4128906.

Greg or anyone, could you help me?  I tried this:

<override_macro name="app_topic_filter" requires="node_page,servlet">
    <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]">
        <then>
            <n.separate>
                <text1.hide_null.overridden />
                <separator>and</separator>
                <text2.page_node.exclude_parent_filter parent_id="1389381 4128906" />
            </n.separate>
        </then>
        <else.overridden/>
    </n.if.equal>
</override_macro>

and this:

<override_macro name="app_topic_filter" requires="node_page,servlet">
    <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]">
        <then>
            <n.separate>
                <text1.hide_null.overridden />
                <separator>and</separator>
                <text2.page_node.exclude_parent_filter parent_id="1389381,  4128906" />
            </n.separate>
        </then>
        <else.overridden/>
    </n.if.equal>
</override_macro>

and this:

<override_macro name="app_topic_filter" requires="node_page,servlet">
    <n.if.equal value1="[n.page_node.id/]" value2="[n.root_node.id/]">
        <then>
            <n.separate>
                <text1.hide_null.overridden />
                <separator>and</separator>
                <text2.page_node.exclude_parent_filter parent_id="1389381" />
            </n.separate>

            <n.separate>
                <text1.hide_null.overridden />
                <separator>and</separator>
                <text2.page_node.exclude_parent_filter parent_id="4128906" />
            </n.separate>

        </then>
        <else.overridden/>
    </n.if.equal>
</override_macro>

All cause errors.

HTTPS Please!