Re: how to access "node.subject" and "location.local_node.subject" in the same macro
Posted by
nnako on
Dec 03, 2014; 8:38pm
URL: https://support.nabble.com/how-to-access-node-subject-and-location-local-node-subject-in-the-same-macro-tp7592800p7593006.html
Hello LouK,
thanks for your reply.
Here is what I want to do.
This is the current NAML code for the macro "instant_html" which I am using to create the notification emails:

Nothing special, yet.
And this is the result (explanations follow below the picture). Please excuse the German language, as it is a screen shot:

Now, the RED underlined strings are generated using the term "n.node.subject", as e.g. seen in the macro code snippet above. "n.node.subject" seems to be set according to the subforum where the particular user has his SUBSCRIPTION. The BLUE underlined string is generated within the macro "start_new_topic_line" and is built using something line the NAML term "n.location.page_node.get_app_node.subject", which kind of has to be split up into parts to be operational in NAML (please see the mentioned macro code). The BLUE portion seems to be set according to the subforum where the message was generated (not necessarily the same as the subscribed subforum but maybe some levels below).
I want the BLUE portion not only to be mentioned in the footer of the notification but also in the title (BLACK in the picture). Thus, the users receiving the notification know EXACTLY what they subscribed and at the same time, where the message was posted. As it is both written in the header of their notification.
My problem is that I can't figure out, how to integrate the split-macro-term for "n.location.page_node.get_app_node.subject" into the macro "instant_html" in order to get it printed out into the header of the the notification email by code from the macro "instant_html".
Any ideas?
Thanks.