Using VID makes exporting the configuration difficult, and now that we have machine names for vocabularies in D7 unnecessary.

Comments

kholloway’s picture

Component: Documentation » Code
Status: Active » Needs review
StatusFileSize
new3.9 KB

The following patch we have used to make this change. I will say that we have made two rounds of updates that are captured in this patch to catch all the places that once used the VID instead of the taxonomy machine name. If anyone catches anything in addition feel free to let me know so we can update the patch or submit an updated patch. To our knowledge this patch works pretty well and updates fields as it should (field syncing).

For technical background this patch essentially changes the export array to use Taxonomy machine names as the export array keys instead of the vocabulary ID. It also adjusts the code in various places to account for this change.

jastraat’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

We're using the patch in #1 successfully.

jastraat’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new9.94 KB

While in general the patch above worked, we had a few trailing error messages, so here's an adjusted patch.

jastraat’s picture

StatusFileSize
new9.94 KB

And without white spaces -

wwhurley’s picture

Status: Needs review » Reviewed & tested by the community

This is working for me on a number of sites.

  • jastraat authored d2e3a96 on 7.x-2.x
    #2055001 by jastraat, kholloway, brooke_heaton: Use vocabulary machine...

brooke_heaton’s picture

This is working for me. Update hook needed to convert old configuration settings to new machine_name. Will add.

brooke_heaton’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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