Is there a way in the UI to change where the Features are being exported to?

Comments

kevinquillen created an issue. See original summary.

mpotter’s picture

Title: Changing export folder » Change export folder via UI
Version: 8.x-3.0-alpha6 » 8.x-3.x-dev
Category: Support request » Feature request

Not in the UI. It's a config variable export.folder in features.settings.yml. Changing this to a feature request.

mxr576’s picture

It would be much better if we could specify each feature's location on the generation UI, just as we could in D7.

duaelfr’s picture

#2741241: Export existing feature where it is currently, not necessarily in modules/custom has been closed as duplicate of this issue.

Just adding for the record: the default value of that field should be the current feature location like it was in D7.

mpotter’s picture

Status: Active » Needs review
StatusFileSize
new2.69 KB

Here is a patch that does a first pass at this. Added a Path field to the Edit form that will override the export directory. However, this needs to be a relative path to the Drupal root. Being able to specify a path outside the root would require more extensive changes regarding the use of $this->root. The only use-case for this would be to write to the temporary directory and maybe that should be an option rather than any arbitrary file path.

But for now, here we go.

Status: Needs review » Needs work

The last submitted patch, 5: features_custom_path-2693123-5.patch, failed testing.

mpotter’s picture

Status: Needs work » Needs review
StatusFileSize
new3.06 KB

Ahh, missed a line that was setting the initial directory. Try this.

  • mpotter committed 1edc3b9 on 8.x-3.x
    Issue #2693123 by mpotter: Change export folder via UI
    
mpotter’s picture

Committed to 1edc3b9.

mpotter’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.