Override default vocabulary in administrator tab

Hello, I'm using Nuxeo10.10 as a docker image and I'm trying to override the vocabulary on the administrator page, I would like to change some vocabulary name and delete other; I found this extension here and I override this:

    <directory extends="template-l10nxvocabulary" name="l10nsubjects">
      <parentDirectory>l10nsubjects</parentDirectory>
      <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
        <property name="targetDirectory">l10nsubjects</property>
        <property name="targetDirectoryField">parent</property>
      </deleteConstraint>
      <dataFile>directories/l10nsubjects.csv</dataFile>
    </directory>

to this:

    <directory extends="template-l10nxvocabulary" name="test">
      <parentDirectory>test</parentDirectory>
      <deleteConstraint class="org.nuxeo.ecm.directory.HierarchicalDirectoryDeleteConstraint">
        <property name="targetDirectory">test</property>
        <property name="targetDirectoryField">parent</property>
      </deleteConstraint>
      <dataFile>directories/l10nsubjects.csv</dataFile>
    </directory>

but it added it as new vocabulary as shown in the attached screenshot. so please if there is any way to change or delete vocabulary names share it with me.

FILES:   Capture.PNG
0 votes

1 answers

780 views

ANSWER



Hello,

The simplest solution would be to upload the new l10nsubjects.csv file in the Resources in Nuxeo Studio (Modeler) or reference another csv file with another XML contribution in the dataFile line.

Regards,

0 votes



Thank you for your reply, but my point is to rename or delete the vocabulary category itself (continent, country, l10ncoverage, l10nsubjects, …, etc.) not the data in the l10nsubjects.csv or in the vocabulary.
11/29/2020

So the easiest is to create a new one and link it to a new property no?
11/30/2020

unfortunately, this solution works for me but it is not suitable for my case, so I'm looking for a way to delete and rename the default vocabularies listed in the dropdown on the Administrator page. Is it possible?
12/02/2020