Filter by both

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

Filter by both

Coleen_Astalos
In my "digest email" macro, I want to filter by both of these conditions:
<n.filter_by.local_subscription.user.can_view.current_node/> 
<n.filter_by.local_subscription.user.is_in_group group="Members" />

I tried this:
<n.filter_by.both condition1="[n.local_subscription.user.can_view.current_node/]" condition2="[local_subscription.user.is_in_group group="Members" /]"/>
but the quotes around "Members" mess up the condition 2 statement and I get this error when I try to save:
Error: parse exception in custom_tweak:digest email - unclosed tag at line 3
 in custom_tweak:digest email:3

So I think I need to do this instead.  Does this look correct?
<n.filter_by.both>
  <condition1.local_subscription.user.can_view.current_node /> 
  <condition2.local_subscription.user.is_in_group group="Members" />
</n.filter_by.both>

Thanks,
Coleen
Reply | Threaded
Open this post in threaded view
|

Re: Filter by both

Pedro
Replace this:
condition2="[local_subscription.user.is_in_group group="Members" /]"/>
with this:
condition2="[local_subscription.user.is_in_group group='Members' /]"/>
My test forum.