Skip to content

Composer.json custom location #73

@4selin

Description

@4selin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions