cancel
Showing results for 
Search instead for 
Did you mean: 

Override default vocabulary in administrator tab

Rawan_Alharbi
Champ on-the-rise
Champ on-the-rise

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.

4 REPLIES 4

Gregory_Carlin
Elite Collaborator
Elite Collaborator

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,

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.

So the easiest is to create a new one and link it to a new property no?

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?