How to code a comment in NAML

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

How to code a comment in NAML

Coleen_Astalos
From my programming experience, I find it's easier for me to keep track of what is going on by using comments (especially when I'm customizing something).   How do I correctly enter a comment in the code of NAML?

I've seen both of these:
<n.comment.>
With the comments entered here
</n.comment.>

and I've also seen the more standard HTML


Which should I be using - does it matter?
Coleen
Reply | Threaded
Open this post in threaded view
|

Re: How to code a comment in NAML

Pedro
Please, always use n.comment. Some times the naml can't understand correctly the html comment tag.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: How to code a comment in NAML

Coleen_Astalos
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
Reply | Threaded
Open this post in threaded view
|

Re: How to code a comment in NAML

Pedro
Everything seems to be ok. Any problem?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: How to code a comment in NAML

Coleen_Astalos
Yes, something is not working right.  I removed the comment and that isn't the problem.  

I'm thinking this is related to this change: http://support.nabble.com/Digest-Subscription-to-New-Topics-only-is-not-generating-td7587551.html so I'll post the info about it there.

Coleen