nliautaud / p01contact

Create contact forms by writing simple tags. Also a plugin for GetSimple and Pico CMS.
MIT License
16 stars 15 forks source link

writing in plugin directory is a bad idea #11

Closed df8oe closed 6 years ago

df8oe commented 7 years ago

Hello,

I am using getsimple symlinked to mnany different websites. Plugins directory is symlinked and not writeable for customer websites. So it is mandatory to move configuration file config.php to data directory. So p01contact plugin works symlinked, too.

Todo:

Best regards Andreas

nliautaud commented 7 years ago

Hi,

An implementation of that feature should consider that p01-contact is also functional as a standalone script, or may be used with another CMS (the only handle to GS here being p01-contact_gs.php). Thus, directory structures and strategies may differ.

So you could probably add a "config_path" setting, empty for default path, and if this setting is defined the alternate file is created/used.