Blank Installation Directory for Addon

jsegars

Registered
Nov 23, 2005
3
0
151
Is there any way to force the cpAddon system to allow for a blank installation directory? We're creating a custom addon and the vast majority of our users will want it running from the root of their domain rather than a subdirectory.

The default behavior for the addon system and all the extisting addons seems to be that it requires a subdirectory but I was hoping there was some way to override this.

Thanks in advance for any help!
Jeff
 

jsegars

Registered
Nov 23, 2005
3
0
151
Finally found a solution after digging through the cpaddon source code...

In the meta_info hash, add a version entry with an empty array...

Code:
'my_version_number' => { 
  public_html_install_files => [],
},