Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-10864

Allow extensions to be accessed via controller with shorter access name than "vendor/extname"

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 3.1.0-a1
    • 3.1.0-dev
    • Extensions
    • None

      Currently, in order to access an extension's front controller, you have to type in the URL /index.php?ext=vendor/extensionName

      These names can get long and ugly. Originally, I believe this was done to prevent duplication, but there are ways to make sure a duplicate name is not taken.

      As such, I propose we add a new column on the phpbb_ext table called "extension_controller" or something similar, which holds a string value of alphanumeric characters and underscores, which can then be used to access that extension's front controller. This would allow URLs like this instead: /index.php?ext=blog
      Note that the extension should still be accessible via the vendor/extname path if needed.

      The MOD/Extension team should require that extensions submitted to the CDB, that require use of a controller, have a unique, and brief but descriptive controller name. Also, there should be a check within phpBB when attempting to install an extension to make sure another extension does not have the same name. We could then either simply error out or provide the admin with a way to use his own controller name for that installation of the extension.

      Thoughts?

            Unassigned Unassigned
            imkingdavid David King [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: