-
- 105 Posts
Hello. Is there a way to get the id of a modWebLink in a plugin?
I can get the id of a normal resource (modResource) and a modSymLink using a plugin during the event 'OnWebPagePrerender'.
You may or may not want to use the code I write. It's probably all against the syntax rules of php and MODx.
Carpet Cleaning
-
- 24,544 Posts
By the time OnWebPagePrerender fires, it's no longer a weblink. It's just the page the weblink pointed to.
You might be able to step in during OnHandleRequest, identify it as a weblink, and save the ID in a session variable which could be read during OnWebPagePrerender.