Javascript error when using Media Picker in Repeatable Content Control
Installed the Repeatable Content Control just fine and have been using it well.
I have a tab which allowed me to select screenshots to show per page. For ease at first I was just using a textstring of the url to the screenshots. But I'm now trying to tidy that up a bit and instead get it to be a media picker for ease of editing in the future.
Trouble is when I add a Media Picker to my custom the repeatable content datatype I get a raft of javascript errors when I click on the "Choose media..." link for the media picker.
Seems the c# is generating out javascript function names with full stops in them (which is invalid):
function ctl00_body_Portfolio.Screenshots_mediaItem_chooseId() {
i dont remember exactly how i solve this problem, but i think it was a problem with the web.config, that wasn't the correct web.conig for .net 3.5 framework.
check if you are using the correct web.config for 3.5.
Twigged it. I was using dots in my field names (Portfolio.Screenshots) and C# was not converting them in the backend javascript I think. Change the naming convention to not have dots and all is good.
Might be a good one to flag up for a future release? Validate that dots are not allowed in alias names.
Javascript error when using Media Picker in Repeatable Content Control
Installed the Repeatable Content Control just fine and have been using it well.
I have a tab which allowed me to select screenshots to show per page. For ease at first I was just using a textstring of the url to the screenshots. But I'm now trying to tidy that up a bit and instead get it to be a media picker for ease of editing in the future.
Trouble is when I add a Media Picker to my custom the repeatable content datatype I get a raft of javascript errors when I click on the "Choose media..." link for the media picker.
Seems the c# is generating out javascript function names with full stops in them (which is invalid):
function ctl00_body_Portfolio.Screenshots_mediaItem_chooseId() {
Any ideas?
i dont remember exactly how i solve this problem, but i think it was a problem with the web.config, that wasn't the correct web.conig for .net 3.5 framework.
check if you are using the correct web.config for 3.5.
Twigged it. I was using dots in my field names (Portfolio.Screenshots) and C# was not converting them in the backend javascript I think. Change the naming convention to not have dots and all is good.
Might be a good one to flag up for a future release? Validate that dots are not allowed in alias names.
is working on a reply...