hi all, quick questions about the
# package-development
a
hi all, quick questions about the document types naming for packages. should I add some kind of prefix/suffix to all names of document types? what happens when the package is installed that has the same name of a document type that already exists in an instance it's installing to? thank you!
n
Because the Document Type Alias would have to be unique. It fails, in the Management API it results in this... So for a Package its a good idea to prefix, if you want to be 100% certain you could load all existing Document Types and then make sure that the name does not collide.. one way would be to add a number in the end, unless already a number, then find next available number and use that... https://cdn.discordapp.com/attachments/1333421914940772373/1333474181920325682/image.png?ex=6799061b&is=6797b49b&hm=61f0394785059e06b2f6ffa47887d0e2339253ca30ea57d3b83d8945e8767b8d&
a
thank for a reply @Niels Lyngsø . does this mean there is a way to change names of the document types during the package installation?
n
Im sorry that is out of my experience area. But I would say it is possible to check before creating the Doc Types, so you adjust before hand.
a
no problem. I have an idea what to look for now. thank you
c
You can change the names if you'd want, but it would most likely would make more sense to choose a unique name prefixed with your package names or something along those lines. If a document type with that exact alias already exists you could skip the installation of that document type as it most likely has already been installed/created before by your own package
a
@Corné Hoskam makes sense. thank you
4 Views