-
- 534 Posts
Hm, ok, that would be a logical explanation, but on the other side I spent a decent amount of time to figure out how I could bypass that "problem" (pass some variable to an event that didn't seem to support $modx->resource and such complicated, unnecessary stuff) when I just accidentally found out, that $modx->resource is available anyway, even when the rtfm said "none", so maybe I would have to remove my rtfm-edit/"correction" in this case, but then it should definitely be mentioned somewhere, that with front-end events these variables are available. I mean, "normal" developers are just looking at the events and want to know what kind of variables they can use^^...how do you think about that logical vs. practical "fight" @Bob?
-
- 24,544 Posts
I think there ought to be somewhere that covers where $modx->user and $modx->resource are available (and not available), but I'm not sure where it should go and I'm not really qualified to write it.
-
- 534 Posts
@lokamaya
Thank you! That piece of code will be so helpful in many cases! =)!!