Changing document type dropdown doesn't swap icon. JS Error!
When I create a new page from the top level node (Home in this case) I get a list of my document types, I can click through them and see the thumbnail icon and description of each one. Then create a page.
However, doing this exact same thing from a 2nd level node doesn't give the same result. Instead of swapping in a new thumbnail and description I get a JS error, this is what I get via firebug:
Although it seems like a small problem it's really frustrating, the client can't tell what the document they're about to create except via the name. And changing the name doesn't change the description so then the 2 items say conflicting things.
Any help on this would be greatly appreciated. Not sure why in any way it would work from the top Home node and not lower nodes. Also, it doesn't matter what the sub-node is that you're trying to create a document from, this bug happens on all of them. IE: It's not issolated to one document type.
I suspect it's something to do with the description of one of your Doctypes that is allowed under that second level. I tested here on a fresh install and it works fine.
But I can reproduce a similar issue by adding an apostrophe in a description of one of my doctypes.
If you look in the script tab in Firebug for the typeInfo array you'll probably see the issue - doesn't look like it escapes apostrophes / quotes, or maybe theres another similar issue on your case
var typeInfo = new Array(2); typeInfo[0] = '<img src="/umbraco/images/thumbnails/developer.png"><p><strong>test-er</strong><br/>i'm a tester</p>' typeInfo[1] = '<img src="/umbraco/images/thumbnails/doc.png"><p><strong>Textpage</strong><br/><em>No description available...</em></p>'
Changing document type dropdown doesn't swap icon. JS Error!
When I create a new page from the top level node (Home in this case) I get a list of my document types, I can click through them and see the thumbnail icon and description of each one. Then create a page.
However, doing this exact same thing from a 2nd level node doesn't give the same result. Instead of swapping in a new thumbnail and description I get a JS error, this is what I get via firebug:
Although it seems like a small problem it's really frustrating, the client can't tell what the document they're about to create except via the name. And changing the name doesn't change the description so then the 2 items say conflicting things.
Any help on this would be greatly appreciated. Not sure why in any way it would work from the top Home node and not lower nodes. Also, it doesn't matter what the sub-node is that you're trying to create a document from, this bug happens on all of them. IE: It's not issolated to one document type.
Thanks for the help.
Bruce
Any insight or help on this? I'm still looking for a solution.
Cheers
Hi Bruce,
I suspect it's something to do with the description of one of your Doctypes that is allowed under that second level. I tested here on a fresh install and it works fine.
But I can reproduce a similar issue by adding an apostrophe in a description of one of my doctypes.
If you look in the script tab in Firebug for the typeInfo array you'll probably see the issue - doesn't look like it escapes apostrophes / quotes, or maybe theres another similar issue on your case
var typeInfo = new Array(2);
typeInfo[0] = '<img src="/umbraco/images/thumbnails/developer.png"><p><strong>test-er</strong><br/>i'm a tester</p>'
typeInfo[1] = '<img src="/umbraco/images/thumbnails/doc.png"><p><strong>Textpage</strong><br/><em>No description available...</em></p>'
Probably worth reporting on codeplex
-Tom
This is exactly what the problem was. I had both ( ) and ' ' in my descriptions. I'll submit a codeplex bug report to reference it.
Thank you so much!
-Bruce
Codeplex link:
http://umbraco.codeplex.com/workitem/29326
is working on a reply...