Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello Umbraco Colleagues,
Regarding the new UI in Umbraco 7.4...
I imported a docType from an Umbraco 7.3.5 instance. One of the properties is called "Name" and its alias is "name".
When I attempted to add a new property to the docType, I could not save it because "The alias name is a reserved term and cannot be used".
But - and this is the part that is the problem - I cannot change the alias of the property. In fact, it appears that the ability to change a property alias has been removed from 7.4.
My questions are:
Is the lack of ability to modify an alias intended behavior?
and if so...
Am I the only one who sees this a big problem?
IIRC, there is a lock icon next to the alias in 7.4. Click that icon and it should unlock the alias so you can edit it.
Thank you, Nicholas! Yes that's the solution.
(In my humble defense, I tried something similar but didn't get my pointer directly over the lock icon.)
I have a lot of document types with the property alias "name". Currently they work. But do I have to change them to avoid trouble in the future?
Hi, I am rocking Umbraco version 7.4.3 - Umbraco as a Service, and I am using alias when I am creating new properties in code. The thing is that I can't use namig like for example: "should-work, ticket-number" and so.
It always changes the naming to camel case. Is it possible to disable this naming?
Why not create the property with a name of "should-work, ticket-number" and an alias of "shouldWorkTicketNumber" (the alias and name are two different things)? Is there some reason you can't have the alias be camel case?
To answer your question, I do not think it is possible to disable camel casing in property aliases. One reason I can think of is that Umbraco uses dynamic typing to allow developers to access properties (e.g., CurrentPage.shouldWorkTicketNumber), and that would not work if aliases contained spaces, for example.
Ok, thanks Nicholas, I'll use the name than. I was afraid that users could change it and than my code wouldn't work, because it would depend on it. That's why I focused on Alias :). But I'll do it the way you suggested.
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted