is it possible to run a snippet on a pdf-resource before outputting the pdf itself?
This is the situation:
A user gets a link in a email with a hash and his email in the url to a landing-page.
There is a custom-table with his entry (email only)
If the code was correct, they get a 'confirmed' in their SESSION and they get a link on that landing-page to a pdf-file (static resource)
They are not registered as MODX-users, and I don't want to have them registered as MODX-users, so I can and do not want to work with resource-groups.
I would like to run a snippet (with redirection) on the pdf-resource to deny access for users, which doesn't had a correct uri.
I know, this would be possible with a plugin.
But, if possible, I don't want to run a plugin on every request, which would run for every resource.
Anyone did something like that?
[ed. note: Bruno17 last edited this post 11 years, 10 months ago.]