2
Vote

UrlPicker doesn't support '-' (dash) in alias (uComponents 5.0.0 and umbraco 4.9.0)

description

When there is a dash on the UrlPicker alias name, the control is not render on the page and produce javascript error on the page.

Sample :
Alias : rotatorItemTargetUrl_fr-CH

Chrome Javascript error :
Uncaught SyntaxError: Unexpected token -
Uncaught ReferenceError: mc_body_prop_rotatorItemTargetUrl_fr is not defined

comments

leekelleher wrote Jan 28 at 11:20 AM

@diachedelic - What are your thoughts about making a new XML schema - essentially one that removes the dashes and uses PascalCase? (This would be in addition to XML, CSV and JSON ... maybe called XmlNew?)

diachedelic wrote Feb 5 at 2:13 AM

@lee - Hmm...i think this work item is about something entirely different from the xml schema. He's saying that having a dash in the property alias causes an error in the URL picker UI.

Do you think there's still a problem with having dashes in the XML? I haven't heard any complaints about it since razor model binding came in.

leekelleher wrote Feb 5 at 9:18 AM

@diachedelic - Yes, sorry - my comment went off on a tangent, not directly relevant to the issue.

(Yes, think model binding sorts it out - now we need a "PropertyEditorConverter" for v6 :-)

As for this issue, is there a JS reference to the container tag?