Add the possibility to create "internal" vocabulary in a site-initializer

Jamie Sammons, modified 1 Year ago. New Member Posts: 7 Join Date: 8/11/23 Recent Posts

Here a new feature request,

We are trying to create a new Site Initializer following this blog :
https://liferay.dev/blogs/-/blogs/introducing-site-initializers


We clone an existing module on gitub, like this one :
https://github.com/liferay/liferay-portal/tree/master/modules/apps/site-initializer/site-initializer-masterclass/src/main/resources/site-initializer 

And try to create an Internal Visibility for the Vocabulary masterclass :

{
    "description": "Description of the Masterclass vocabulary",
    "externalReferenceCode": "MASVOC0001",
    "name": "Masterclass",
    "name_i18n": {
        "en_US": "Masterclass"
    },
    "viewableBy": "Anyone"
}

But we do not find a way to define a vocabuary "Internal".
In the Liferay code, it seems to not exist. And if we look at the RestApi, we can see it is not possible :

https://github.com/liferay/liferay-portal/blob/ee2717f38bb6f171e594caaa0bcc70a934330ded/modules/apps/headless/headless-admin-taxonomy/headless-admin-taxonomy-impl/rest-openapi.yaml#L268

The attribute "visibility" is not present.

It would be great to add the possibility to create an "internal" vocabulary in a site initializer and/or by the JSON/REST API.

Eric.

thumbnail
Jamie Sammons, modified 1 Year ago. Expert Posts: 367 Join Date: 9/5/14 Recent Posts

Feature Request Created: https://liferay.atlassian.net/browse/LPS-204305