Login  Register

Re: How to code a comment in NAML

Posted by Coleen_Astalos on Nov 20, 2013; 4:19pm
URL: https://support.nabble.com/How-to-code-a-comment-in-NAML-tp7587061p7588180.html

Do you see anything wrong with the comment line below (line 3) in this macro?:

 <override_macro name="digest email" requires="subscription,node_list">
    <n.set_local_subscription.this_subscription/>
    <n.comment.>Filter subscriptions to only those who are in the Members groups</n.comment.>
    <n.filter_by.local_subscription.user.is_in_group group="Members" />
    <n.new_email.>
        <n.send>
            <to.local_subscription.user.user_email/>
            <to_name.local_subscription.user.name/>
            <from_name.root_node.subject/>
            <subject><n.local_subscription.node.subject/> - <t>Digest Email</t></subject>
            <text_part.local_subscription.digest_text/>
            <html_part.local_subscription.digest_html/>
            <bounce_to.local_subscription.user.bounces_address/>
        </n.send>
    </n.new_email.>
</override_macro> 

I added this comment in and now the filter doesn't seem to be working right.  Do I have it wrong or misplaced?
I don't really understand when I need to have an ending period ( .) or an ending slash (/ ) in the nabble code (I've read http://naml.nabble.com/NAML-language-introduction-td4335758.html but I'm still clueless.

Thanks,
Coleen