Have you tried setting up another trigger with specific root node other then the site asset? for example image thumbnail?
If this works then it might be a glitch with Matrix, otherwise your Trigger is setup wrong.
Also it might be worth passing secondary condition (Has a Child / Parent) with the site asset set as root node.
So the trigger will check the site root, then it will check the parent Assed type or ID then fire the email.
I hope it helps.
Thanks so much for a quick reply!
Yes I initially set up with individual nodes and it didn't work. I added the site asset node as well and then it worked ( but of course it passes everything under the site asset that I have defined in the trigger (standard pages).
That's a hell of allot of spam. We have two conditions we are checking for.
Your trigger will often run twice with those events as asset updated will run when asset metadata updated happens. You should only need asset updated if you are listening for all updates.
What happens if you remove the tree location condition all together?
Also, when you don't get an email, can you check the Matrix logs to see if the trigger still runs or errors for any reason?
Yea you shouldn't really need the has parent condition as it just adds extra queries each time the trigger runs, you should only need is of type and tree location. But yea, I would just try and use the asset if of type first, see if that works, then add a tree location condition. Make immediate child only is not ticked if you want to run it on assets on any level from the root node.
if I remove the tree location the trigger works - but I really just want specific nodes - otherwise with the amount of assets we have in the system it will be spam city.
As soon as I add a tree location and select a specific node in our site - no results.
I checked the systems logs and the trigger fired sucessfully - but no email =(
What does the send email action look like? Does it rely on any specific content from the asset that is firing it? Or are you just hardcoding some fixed values for to address, from address, and subject?
I have tried also to try and get to send the email to my LDAP user as well and nothing comes through. It seems it is only working with the tree location set for the whole site =( I thought it may have also appeared in myspace. But no where to be seen.
I was more thinking of the from and to and subject settings of your email trigger. Maybe the email sends but there is something in those fields that is blocking it by a spam filter on an email server somewhere or a dynamic keyword that is printing nothing?
Thanks Bart I might have a play with the from email. We use our no-reply email address. It doesn’t explain why it sends and works perfectly when the tree location it set for the whole site. I would have thought it just wouldn’t send full stop?
I just rebuilt the trigger to test if it sent anything. I tried moving the conditions around as well - no love. I added in "page" as well to grab at anything. The 404 page is a standard page and it will send emails if I edit the asset when the tree node is defined for the whole site. In the manuals however it does use an example of a site asset - so maybe the action won't work defined down to specific nodes.
Hmm, maybe try and use asset id condition instead, as if you set that as tree location condition, it might only trigger on assets UNDER the specified root node, not the root node istelf, as that's what the condition note is suggesting...