mehdimiah_
09/02/2024, 12:48 PMrickbutterfield
09/02/2024, 1:08 PMUmb.Condition.WorkspaceContentTypeAlias
https://github.com/umbraco/Umbraco.CMS.Backoffice/blob/main/src/packages/core/workspace/conditions/workspace-content-type-alias.condition.tsrickbutterfield
09/02/2024, 1:09 PMmatch
parameter or array of strings as oneOf
rickbutterfield
09/02/2024, 1:10 PMmehdimiah_
09/02/2024, 2:37 PMconditions: [
{
alias: 'Umb.Condition.WorkspaceContentTypeAlias',
//match : 'blogPost'
oneOf: ['blogPost', 'mediaType1'],
},
],
};
or do i need to also create my own version of workspace-content-type-alias.condition.tsrickbutterfield
09/02/2024, 2:51 PMmatch
or oneOf
with the respective contentTypesmehdimiah_
09/02/2024, 3:14 PMObject literal may only specify known properties, and 'oneOf' does not exist in type 'UmbConditionConfigBase<string> | UmbMultipleAppLanguageConditionConfig'.ts(2353)
. the way my mainfest is set up, i am exporting the const manifests as an array of object. this was not being applied to specific document types, so i copied the GH code and re-wrote it and i feel that error could be the reason why.
https://cdn.discordapp.com/attachments/1280147203498971211/1280184132596535306/image.png?ex=66d727e1&is=66d5d661&hm=557d82db9f195d9463ea3a0e5f0f78e64ba34b71b59e185f3abb2497fa5c311c&mehdimiah_
09/02/2024, 3:16 PMrickbutterfield
09/02/2024, 3:20 PMmehdimiah_
09/02/2024, 3:22 PMmehdimiah_
09/02/2024, 3:23 PMrickbutterfield
09/02/2024, 3:24 PMalias
and match
in the first screenshot should be fine as is. Are you using TS or JS?mehdimiah_
09/02/2024, 3:25 PMrickbutterfield
09/02/2024, 3:27 PMrickbutterfield
09/02/2024, 3:28 PMmehdimiah_
09/02/2024, 3:28 PMmehdimiah_
09/02/2024, 3:33 PMrickbutterfield
09/02/2024, 3:43 PMworkspace-content-type-alias.condition.ts
file and it should let you use that as a conditionmehdimiah_
09/02/2024, 3:59 PMmehdimiah_
09/02/2024, 4:29 PM