Jump to content

Nested module URLs in admin


FireWire
 Share

Recommended Posts

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

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".

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...