The project's location in my staging environment and production environment differs, so I cannot hardcode the full path within the Buttonbox config. I wish to use multi-environment variables, as described in the Craft CMS docs.
I have a multi-environment variable called basePath, which points to the project's root folder (some/folder/to/project/craft) on my staging server. On my production server, the path might differ (some/other/folder/to/project/craft).
When using multi-environment variables, as described in the docs, Buttonbox just urlencodes the variable. Let's say my general.php says that 'baseUrl' => 'http:/www.some.site/some/folders/to/project'. So when I enter {baseUrl}/admin/resources/images/icon.png, it should render http:/www.some.site/some/folders/to/project/admin/resources/images/icon.png. But it renders it as %7BbaseUrl%7D/admin/resources/images/icon.png.
The project's location in my staging environment and production environment differs, so I cannot hardcode the full path within the Buttonbox config. I wish to use multi-environment variables, as described in the Craft CMS docs.
I have a multi-environment variable called basePath, which points to the project's root folder (
some/folder/to/project/craft) on my staging server. On my production server, the path might differ (some/other/folder/to/project/craft).When using multi-environment variables, as described in the docs, Buttonbox just urlencodes the variable. Let's say my general.php says that
'baseUrl' => 'http:/www.some.site/some/folders/to/project'. So when I enter{baseUrl}/admin/resources/images/icon.png, it should renderhttp:/www.some.site/some/folders/to/project/admin/resources/images/icon.png. But it renders it as%7BbaseUrl%7D/admin/resources/images/icon.png.