I've inherited a site that was on 4.7 and it's got spaces in the alias of the document types eg. cmsContentType.alias value of "Library Document"
What are the implications of this? Some of them have had the spaces removed since I've been working on the site which is how I became aware of the issue. Does anyone know when the spaces would be removed?
I've got lots of nasty legacy code that uses the NodeTypeAlias with the space so I'm considering fixing up the spaces and then finding them all.
Also I have Properties that start with upper case. I know when editing a document type when you leave the alias field it converts this to lowercase, is there anywhere else that this would be altered?
What are the implications of leaving those doctypes with spaces and properties with uppercase as is?
Out of interest when was it even possible to create a docType with a space in the alias?
There is no problem having spaces with the DocType Name. But if you are going to filter the docType then you will need to remove the spaces in your xslt or cshtml file.
That is instead of of doing something like
contentTypeAlias == "docType Name" it should be contentTypeAlias == "docTypeName"
for the second part with property Aliases am not sure about it using Uppercase for the first character
yeah I have loads of code using the nodeTypeAlias with the space and somewhere along the line Umbraco, or maybe Courier, cleans it up which breaks the legacy code.
I think my best bet is remove the spaces and brackets and then find all usages of the nodetypealias with the space.
Implications of spaces in NodeTypeAlias
I've inherited a site that was on 4.7 and it's got spaces in the alias of the document types eg. cmsContentType.alias value of "Library Document"
What are the implications of this? Some of them have had the spaces removed since I've been working on the site which is how I became aware of the issue. Does anyone know when the spaces would be removed?
I've got lots of nasty legacy code that uses the NodeTypeAlias with the space so I'm considering fixing up the spaces and then finding them all.
Also I have Properties that start with upper case. I know when editing a document type when you leave the alias field it converts this to lowercase, is there anywhere else that this would be altered?
What are the implications of leaving those doctypes with spaces and properties with uppercase as is?
Out of interest when was it even possible to create a docType with a space in the alias?
Oh I have brackets in there too which get stripped out at some stage
Hi Justin,
There is no problem having spaces with the DocType Name. But if you are going to filter the docType then you will need to remove the spaces in your xslt or cshtml file.
That is instead of of doing something like
for the second part with property Aliases am not sure about it using Uppercase for the first character
yeah I have loads of code using the nodeTypeAlias with the space and somewhere along the line Umbraco, or maybe Courier, cleans it up which breaks the legacy code.
I think my best bet is remove the spaces and brackets and then find all usages of the nodetypealias with the space.
is working on a reply...