edit template layout element issue
Hi All,
Sorry if this question has already been asked, I’m having issue with edit layout element. i’m trying to change a width on one of the element on my template, but every time I click on Layout – then click on edit on the element nothing happen. It should take me to the “Edit Layout Element” where I can sizes, spaces and classes of this. but this doesnt happen, attach is screen shot of this
Cheers
Sop
Hello Sop,
Have you tried to inspect the page with Firebug for example? If not please do so and check the Console and Network tabs for any errors or failed requests.
Kind regards,Hi Pavel,
thanks for your reply, this is the error i got when i check the Console and Network tabs:
TypeError: $(...).imgAreaSelect is not a function
else $(pane).imgAreaSelect(options);
and when i click on it, it take me into line 302 of that code: Telerik.Sitefinity.Web.Scripts.LayoutEditor.debug.js
302: else $(pane).imgAreaSelect(options);
not sure what i should do after this.
Sop
Hello Sop,
It appears that some custom Javascript is conflicting with Sitefinity's one. Try removing some of your script on the page/template or the .master page to see if it will help.
Kind regards,I was having this same issue and the only javascript on the page was jQuery 1.9.1 which was called just before the closing form tag. When I removed the jQuery file the issue went away.
Hello Michael,
Some of the built in widgets automatically import Jquery on the page they are dropped on and so if you have additionally added the library with the Javascript widget this might have caused the issue. You can try to reference Jquery from the Title&Properties of the page in the HTML included in the <head> tag (except title, keywords, description) field.
I hope this helps.
Thanks Pavel. I haven't been able to get back to the project this was happening on, but I am guessing the best way to fix this problem is by calling the built-in jquery with a ScriptReference instead of calling a local jquery file or calling it from an API.
Hello Michael,
Another suitable solution would be to use ResourceLinks as described in this blog post.
Regards,