Login  Register

how to access "node.subject" and "location.local_node.subject" in the same macro

Posted by nnako on Nov 21, 2014; 3:30pm
URL: https://support.nabble.com/how-to-access-node-subject-and-location-local-node-subject-in-the-same-macro-tp7592800.html

Hi,

I want to modify the title row within a notification email. I want to do this in order to tell the user exactly where his SUBSCRIPTION was set and at the same time, from which SUBFORUM the post is coming from. In general, these two can be different.

I tried this for modifying the "instant_html" macro, but somehow, it does not work:

<override_macro name="instant_html" requires="subscription,node_page">
    <n.set_local_subscription.this_subscription/>
    <n.set_local_node.page_node.get_app_node/>
    ...
    <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
        <n.if.equal value1="[n.node.subject/]" value2="[n.location.local_node.subject/]">
            <then>
                <n.node.subject/><br/>
            </then>
            <else>
                <n.node.subject/> ... <n.location.local_node.subject/> <br/>
            </else>
        </n.if.equal>
    </div>
    <br/>
    <n.page_node.html_email_message_with_signature/>
    <br/>
    <br/>
    ...
</override_macro>

Where do I get the "location.local_node.subject" from, which was used successfully e.g. in the macro "start_new_topic_line"?

Thanks.