I'm just learning how to create custom modules for DNN 3.0.13 and am confused about how to access resources my module may need (such as scripts (.js), images, etc).
1) Where should images and scripts be located? In a folder off of DesktopModules\MyCompany.MyModule\ ? Or would they be in a folder off of Portals\0\ ?
2) In the .ascx how do I form URLs to refer to the files? I've tried Images\blah.gif, DesktopModules\MyCompany.MyModule\Images.blah.gif, I've tried using ~ and not using ~, prefixing the url with \ and not prefixing it with \... nothing seems to work. BTW, I have friendly urls turned on.
3) I've tried doing <img src='<%= GetImageUrl(...) %>' ... >, but the "<%= ... %>" goes through to the client without being pre-processed by ASP.NET. Is this normal, or is something not working properly?
4) How do I include .js scripts in my module? Can I just put a <link src="..." ...> at the top of the .ascx? How do I form the url so it finds the .js?
5) In the .dnn file, if I specify <file><path>Some/Path/That/I/Need</path><name>blah.gif</name></file> will that full path be created properly if it doesn't exist? Or do I need to specify one folder at a time somhow (like Some, then Some/Path, then Some/Path/That, ...)?
6) If I need several files with the same name but different paths (such as Blue\Line.gif, Red\Line.gif, Green\Line.gif), how do I put them in the PA zip? Can I have paths in the zip? I've always put all the files in the PA zip without paths. How would I list them in the .dnn file so it knows which line.gif from the zip file goes with which <path>...</path><name>line.gif</name>?
7) If my module needs a third-party dll for a control it uses, do I just include it in the PA zip file and in the .dnn (<file><name>ThirdParty.dll</name></file> with no <path>)? Will this cause any conflicts if some other module also includes that dll (maybe even a different version)?
Thanks in advance for any light you can shed on these issues for me. ![Smile [:)]](/emoticons/emotion-1.gif)
-----
Lee