<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Custom Modules</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Developing custom modules for DotNetNuke.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Accessing resources from custom module</title><link>http://forums.asp.net/thread/899419.aspx</link><pubDate>Wed, 20 Apr 2005 05:57:04 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:899419</guid><dc:creator>smcculloch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/899419.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=899419</wfw:commentRss><description>&lt;P&gt;Yep, the folders in the resources.zip will be reflected in your modules directory. &lt;/P&gt;</description></item><item><title>Re: Accessing resources from custom module</title><link>http://forums.asp.net/thread/899360.aspx</link><pubDate>Wed, 20 Apr 2005 04:28:39 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:899360</guid><dc:creator>leep2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/899360.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=899360</wfw:commentRss><description>&lt;P&gt;smcculloch,&lt;BR&gt;Thank you!&amp;nbsp; That cleared up a lot of my confusion.&amp;nbsp; Especially&amp;nbsp;the Resources.zip.&amp;nbsp; That will be a LIFE saver.&amp;nbsp; I assume the paths in the Resources.zip will be duplicated in the DesktopModules/MyCompany.MyModule/ folder, correct?&lt;BR&gt;&lt;BR&gt;BTW, it's kind of a kewl feeling to have my original posting immortalized on your site. &lt;img src="/emoticons/emotion-2.gif" alt="Big Smile [:D]" /&gt;&lt;BR&gt;&lt;BR&gt;-----&lt;BR&gt;Lee&lt;/P&gt;</description></item><item><title>Re: Accessing resources from custom module</title><link>http://forums.asp.net/thread/899347.aspx</link><pubDate>Wed, 20 Apr 2005 04:13:40 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:899347</guid><dc:creator>smcculloch</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/899347.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=899347</wfw:commentRss><description>I have tried to answer the above questions &lt;a href="http://www.smcculloch.net/Home/tabid/35/ctl/ArticleView/mid/363/articleId/84/CommonModuleDeveloperQuestions.aspx"&gt;here&lt;/a&gt;.&lt;br&gt;</description></item><item><title>Re: Accessing resources from custom module</title><link>http://forums.asp.net/thread/899320.aspx</link><pubDate>Wed, 20 Apr 2005 03:46:41 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:899320</guid><dc:creator>SchelianHP</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/899320.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=899320</wfw:commentRss><description>&lt;P&gt;Lee,&lt;/P&gt;
&lt;P&gt;that are a lot of different questions.&lt;/P&gt;
&lt;P&gt;Have a look at the folder documentation\public under the root folder of your dnn directory, there are a lot of documentation which will give you many answers to your questions.&lt;/P&gt;
&lt;P&gt;The most important document is the DotNetNuke Module Developers Guide.&lt;/P&gt;
&lt;P&gt;If you have a specific problem after reading the documents, post the more detailed problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description></item><item><title>Re: Accessing resources from custom module</title><link>http://forums.asp.net/thread/899303.aspx</link><pubDate>Wed, 20 Apr 2005 03:25:18 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:899303</guid><dc:creator>kpetro</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/899303.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=899303</wfw:commentRss><description>&lt;P&gt;I will try to answer to the best of my knowledge:&lt;BR&gt;&lt;BR&gt;1, 2, 3)&amp;nbsp; You should have you images (or any resource) in the DesktopModules\MyCompany.MyModule\ directory.&amp;nbsp; The path should be set up using the TemplateSourceDirectory property on the Control.&amp;nbsp; (&amp;lt;IMG SRC=""" &amp;amp; Me.TemplateSourceDirectory &amp;amp; "/abc.gif"" WIDTH="15" BORDER=""0"" HEIGHT=""15""&amp;gt;)&lt;/P&gt;
&lt;P&gt;4) I have never tried anything such as this in a Module, but I assume you can reference the JS file the same way you refereance an image.&lt;BR&gt;&lt;BR&gt;5)&amp;nbsp;Yes you can specify a path in the dnn config file and when you upload your module the directory will be created.&lt;/P&gt;
&lt;P&gt;6) I assume you will then need to combine the answer from 1,2,3 with the directory you are going to create in 5 to accomplish what you want.&lt;BR&gt;&lt;BR&gt;&amp;lt;IMG SRC=""" &amp;amp; Me.TemplateSourceDirectory &amp;amp; "Blue\Line.gif"" WIDTH="15" BORDER=""0"" HEIGHT=""15""&amp;gt;&lt;/P&gt;
&lt;P&gt;7) You can specify any DLL files in the dnn config file and they will get uploaded.&amp;nbsp; I believe ensuring there are no conflicts will be a manual process.&lt;/P&gt;</description></item><item><title>Accessing resources from custom module</title><link>http://forums.asp.net/thread/898568.aspx</link><pubDate>Tue, 19 Apr 2005 15:54:26 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:898568</guid><dc:creator>leep2</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/898568.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=98&amp;PostID=898568</wfw:commentRss><description>&lt;P&gt;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).&lt;BR&gt;&lt;BR&gt;1) Where should images and scripts be located?&amp;nbsp; In a folder off of DesktopModules\MyCompany.MyModule\ ?&amp;nbsp; Or would they be in a folder off of Portals\0\ ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2) In the .ascx how do I form URLs to refer to the files?&amp;nbsp; 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.&amp;nbsp; BTW, I have friendly urls turned on.&lt;BR&gt;&lt;BR&gt;3) I've tried doing &amp;lt;img src='&amp;lt;%= GetImageUrl(...) %&amp;gt;' ... &amp;gt;, but the "&amp;lt;%= ... %&amp;gt;" goes through to the client without being pre-processed by ASP.NET.&amp;nbsp; Is this normal, or is something not working properly?&lt;BR&gt;&lt;BR&gt;4) How do I include .js scripts in my module?&amp;nbsp; Can I just put a &amp;lt;link src="..." ...&amp;gt; at the top of the .ascx?&amp;nbsp; How do I form the url so it finds the .js?&lt;BR&gt;&lt;BR&gt;5) In the .dnn file, if I specify &amp;lt;file&amp;gt;&amp;lt;path&amp;gt;Some/Path/That/I/Need&amp;lt;/path&amp;gt;&amp;lt;name&amp;gt;blah.gif&amp;lt;/name&amp;gt;&amp;lt;/file&amp;gt; will that full path be created properly if it doesn't exist?&amp;nbsp; Or do I need to specify one folder at a time somhow (like Some, then Some/Path, then Some/Path/That, ...)?&lt;BR&gt;&lt;BR&gt;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?&amp;nbsp; Can I have paths in the zip?&amp;nbsp; I've always put all the files in the PA zip without paths.&amp;nbsp;How would I list them in the .dnn file so it knows which line.gif from the zip file goes with which &amp;lt;path&amp;gt;...&amp;lt;/path&amp;gt;&amp;lt;name&amp;gt;line.gif&amp;lt;/name&amp;gt;?&lt;BR&gt;&lt;BR&gt;7) If&amp;nbsp;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 (&amp;lt;file&amp;gt;&amp;lt;name&amp;gt;ThirdParty.dll&amp;lt;/name&amp;gt;&amp;lt;/file&amp;gt; with no &amp;lt;path&amp;gt;)?&amp;nbsp; Will this cause any conflicts if some other module also includes that dll (maybe even a different version)?&lt;BR&gt;&lt;BR&gt;Thanks in advance for any light you can shed on these issues for me. &lt;img src="/emoticons/emotion-1.gif" alt="Smile [:)]" /&gt;&lt;BR&gt;-----&lt;BR&gt;Lee&lt;/P&gt;</description></item></channel></rss>