FireWire Posted February 24, 2023 Share Posted February 24, 2023 Hello all, I am working on a module and wanted to know if there was a way to get deeper nesting in module admin URLs. Basic: /admin/coolmodule Renders with ___execute() in the module First child: /admin/coolmodule/info Renders with ___executeInfo() in the module Would like to create these: /admin/coolmodule/foo/bar /admin/coolmodule/foo/bar/baz Is there a way to do this virtually like __execute() and __executeInfo() or something similar? Can URL hooks be used within the custom module page? Thanks! Link to comment Share on other sites More sharing options...
Robin S Posted February 24, 2023 Share Posted February 24, 2023 1 hour ago, FireWire said: Would like to create these: /admin/coolmodule/foo/bar /admin/coolmodule/foo/bar/baz In executeFoo() you would check the URL segments and do different things accordingly. In executeFoo() $input->urlSegment1 is "foo". 1 Link to comment Share on other sites More sharing options...
FireWire Posted February 24, 2023 Author Share Posted February 24, 2023 @Robin S Brilliant! I don't know why I didn't think of that... Thanks! 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now