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
I've encountered a weird issue when using "icon" as a property alias on a doctype used inside Stacked Content. The property doesn't save ... but after renaming the property alias everything works.
Does anybody know whether "icon" is a reserved property alias name in Stacked Content?
Yeah, "icon" is a reserved alias... along with "name", "children" and "key".
I can't recall why we had it as a reserved alias, I'm sure there was a reason at the time, hmmm.
Thanks Lee for the quick response.
Thanks Lee and Søren.
The reserved aliases are they described anywhere in the docs (cant find it)? The list in the wrapper shows some very common named aliases which are likely to be used in doctypes.
This one was a bastard to find ...
There aren't any docs for Stacked Content yet (well, Inner Content - the helper library part) ... I appreciate this would have been a bugger to figure out, sorry.
Umbraco does already reserve "name" and "children" as property aliases - they'll throw an error in the doctype editor.
Like I said to Søren, I can't recall why we reserved "icon" and "key" ... although I'd have thought "key" would be reserved as it's used by IPublishedContent.
If I was dev'ing it again now, I'd have probably prefixed "icon" with something else.
I've raised a ticket on our issue tracker: https://github.com/umco/umbraco-inner-content/issues/31
Thanks for raising a ticket. The other aliases we prob wouldn't dare trying anyway.
Thanks again and have a great summer.
All the best
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted