Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composer.json custom location #73

Open
4selin opened this issue Dec 8, 2020 · 0 comments
Open

Composer.json custom location #73

4selin opened this issue Dec 8, 2020 · 0 comments

Comments

@4selin
Copy link

4selin commented Dec 8, 2020

I have composer.json one level up from web root and did not get it working following current instructions.
https://docs.carbonfields.net/#/plugin-quickstart

specifically

"extra": {
    "installer-paths": {
        "YOUR_DESIRED_LOCATION/vendor/{$vendor}/{$name}/": ["type:wordpress-plugin"]
    }
}

It was not sufficient.

To get it working I did some tweaks:

1. I had to define base url

define('Carbon_Fields\URL', home_url('/vendor/htmlburger/carbon-fields-plugin'));

Add this to "Plugin Quickstart" please.

2. I had to manually copy build folder from

vendor/htmlburger/carbon-fields/

to

web/vendor/htmlburger/carbon-fields-plugin/

Something missing in composer install step I suppose.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant