11-29-2020 01:47 AM
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.
11-29-2020 04:26 AM
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,
11-29-2020 07:29 AM
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-30-2020 04:37 AM
So the easiest is to create a new one and link it to a new property no?
12-02-2020 01:10 AM
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?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.