Open abdullah10182 opened 3 years ago
Hello, @abdullah10182 I guess that this PR that will be merged soon can help you to overwrite it using a custom configuration file.
It will be released this weekend, or maybe today. Then I can test it.
Great, thanks for the awesome work. Will make sure to test it when it comes out.
OK. Just checked, and it seems that the PR doesn't change the Plugin's settings, after all.
So, in fact, what I'll need to do, is to convert your PR into a feature request. 'Cause, checking the code (It was written a long time ago, sorry) I didn't intendet to support this kind of configuration, but it seems interesting.
Let me just check if it would be viable.
UPDATE: The main thing is that it gets the default values from the file, then it replaces the value by the ones available at the database.
I wasn't able to fully test this one, but in my quick tests, it seems that the CMS Settings will always replace the values from the config file.
@abdullah10182 do you have any feedback about this one?
For now I just manually change the urls whenever I sync the database or move anything to another url. Not a big deal. But would be nice if the url settings where configurable through code in my custom plugin, to make these dynamic per environment.
Hi, I'm trying to overwrite the activation and password reset urls so I can customize these per installation in an .env file for example.
So far I have a custom plugin in which I have this in the Plugin.php file.
This works, the problem is that it clears all the fields in the settings section for the plugin in the backend. The values still exist, they just don't display anymore in their corresponding fields in the settings area.
Any hint what I'm doing wrong?
Thanks, A.