-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Are sub-types supported ? #26
Comments
By now the subtype is taken from the document on marking of the "docType" element, and it is shown only in the uri. |
Hi @obujor I am working on supporting languagePlugins by documentType + subType . I have multiple documents of type debateReport which differ on subType .. and a similar case with "doc" document Type. |
Great! Do the subType documents need different buttons which are not included in documentType? Where you would like to insert the subType in Akoma? |
Yeah there are cases where they would need different buttons - not different buttons per se... but for 1 type I don't want to show some buttons . I have a case where the two documents are very similar in structure (modeled on debateReport) and other cases where the documents are structurally different (even if modeled on doc). I think this is pretty much a valid scenario when you consider the generic doc / debateReport types. So in the current scenario when I say new document, it is a AN document type that is provided, but in reality you could have multiple document types in an organization mapped to a AN document type ... and you differentiate based on sub-type. |
Ok, this makes sense. |
@obujor I am testing this functionality at the moment, will be sending a PR in a day or two. |
The pull request #36 provides an implementation for this feature but we were waiting for a rework to merge it, finally we closed the pull request because the rework wasn't submitted. |
I noticed in structure.json, the
docTypes
structure takes only the high-level docType name ("doc", "bill" ... ). Is it possible to have two "doc" docTypes but having a different sub-Type name ? something like :The text was updated successfully, but these errors were encountered: