Jump to content

Process module page isn't created / deleted


pwFoo
 Share

Recommended Posts

I started a process module and added the page array to module info file (mymodule.info.php, works fine with module info, required or icon for example...). 

    'page'      => array(
        'name'      => 'notify',
        'parent'    => '',
        'title'     => 'Notifications',
    ),

Tested with parent empty, no parent key and value "setup", but page won't be created. If the page exists the process isn't set by module installation.

I could create / delete the page manually with install() / uninstall(), but I think it should work automatically as written here:

https://processwire.com/blog/posts/building-custom-admin-pages-with-process-modules/#building-a-basic-custom-admin-page

      // page that you want created to execute this module
      'page' => [
        // your page will be online at /processwire/yourname/
        'name' => 'yourname',
        // page title for this admin-page
        'title' => 'Hello',
      ],

 

 

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