Hi,

I have 2 versions for a website, one local and one in production. I use config export/import to share settings like views between local to prod. I done a migration process on both websites.

This work good but there is an issue with field using taxonomy term.

On local, I created a view that use term as dynamic class like this:
Adding a taxonomy field restricted to a vocabulary ans rewrite the output with token.

{{ term_node_tid }} ==
{{ term_node_tid__tid }} == L'identifiant du terme de taxonomie pour le terme.
{{ term_node_tid__name }} == Le nom du terme de taxonomie pour le terme.
{{ term_node_tid__vocabulary_vid }} == Le nom système du vocabulaire auquel le terme appartient.
{{ term_node_tid__vocabulary }} == Le nom pour le vocabulaire auquel appartient le terme.

The first one is empty but it works when I use it in the HTML list settings as class:
tid-{{ term_node_tid }}

but on the production website, after re-set the right vocabulary, tid doesn't appear...I must recreate it to get it works.
I don't understand why the prod website lose tid's after importing view and terms ( with structure sync) ?

Thanks

Comments

aiphes created an issue. See original summary.

aiphes’s picture

aiphes’s picture

More info about this error/bug, watchdog extract:

Emplacement	https://d8.com/fr/admin/structure/block
Référent	https://d8.com/fr/admin/structure/views/view/formations_2019?destination=/fr/admin/structure/views
Message	Le "block_content:f2a5204a-c741-419a-986a-2b718ecf4731" n'a pas été trouvé
aiphes’s picture

Migration about terms where not complete and content not tagged. After re-run migration like:

mim --feedback=50 --update upgrade_d6_term_node_1,upgrade_d6_term_node_2,upgrade_d6_term_node_3,upgrade_d6_term_node_4,upgrade_d6_term_node_5,upgrade_d6_term_node_6

Content is tagged and Views with dynamic class on TID work. Fixed.

lendude’s picture

Status: Active » Closed (works as designed)

Thanks for reporting back the fix.