Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
- Home
- General
- Feature Requests
- RE: Add the possibility to create "internal" vocabulary in a site-initializer
RE: Add the possibility to create "internal" vocabulary in a site-initializer
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.
Feature Request Created: https://liferay.atlassian.net/browse/LPS-204305
Powered by Liferay™