<?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>DotNetNuke</title><link>http://www.dotnetnuke.com/tabid/795/Default.aspx</link><description>Discussions of DotNetNuke for ASP.NET 1.x and above.  &lt;a href="http://www.dotnetnuke.com/" target="_blank"&gt;DNN Home&lt;/a&gt; &lt;a href="http://aspadvice.com/SignUp/list.aspx?l=105&amp;c=25" target="_blank"&gt;Email List&lt;/a&gt;</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/862032.aspx</link><pubDate>Thu, 17 Mar 2005 23:59:55 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:862032</guid><dc:creator>mrswoop</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/862032.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=862032</wfw:commentRss><description>Documentation updates are in progress...</description></item><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/862023.aspx</link><pubDate>Thu, 17 Mar 2005 23:51:03 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:862023</guid><dc:creator>yiyi2005</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/862023.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=862023</wfw:commentRss><description>mrswoop -
&lt;br /&gt;

&lt;br /&gt;
Maybe this is something should be included in the skinning documentation? I did not see it there.</description></item><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/862008.aspx</link><pubDate>Thu, 17 Mar 2005 23:33:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:862008</guid><dc:creator>Gabe Halsmer</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/862008.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=862008</wfw:commentRss><description>&lt;br /&gt;
Thank you Scott.  That's what I needed to know.</description></item><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/861827.aspx</link><pubDate>Thu, 17 Mar 2005 20:44:45 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:861827</guid><dc:creator>mrswoop</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/861827.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=861827</wfw:commentRss><description>Don't hack this... its for your benefit if you use it correctly.  Here's the reason and the way it works.
&lt;br /&gt;

&lt;br /&gt;
~ We used to have a great deal of difficulty with portability of HTML (and some ASCX) skins.  People copied them from one portal to another and they woudln't work becasue the image paths contained explicit references (e.g. \Portals\0\Skins\MySkin\Images).
&lt;br /&gt;

&lt;br /&gt;
~ The option in the Skins viewer to (re)parse a skin created all kinds of havoc for ASCX skins because the paths were doubled... (e.g. \Portals\0\Skins\MySkin\Images\Portals\0\Skins\MySkin\Images).
&lt;br /&gt;

&lt;br /&gt;
~ In 3.0.12, we removed the parsing of the ASCX file in favor of providing a static variable which can be used in your ASCX which will make it portable (&amp;lt;%= SkinPath %&amp;gt;).  So now you can just create your ASCX skin as you normally would, and then append this variable to the front of any image path for your package (e.g. src=&amp;quot;&amp;lt;%= SkinPath %&amp;gt;Images\myimage.jpg&amp;quot;).  The variable will dymanically insert &amp;quot;\Portals\0\Skins\MySkin\&amp;quot; which makes your ASCX skin completely portable.
&lt;br /&gt;

&lt;br /&gt;
~ There is only ONE caveat with this.  Which is that the variable cannot be used with tags that are also &amp;quot;runat=server&amp;quot;.  So if you're applying a background to a content pane (for example), this will not work:
&lt;br /&gt;

&lt;br /&gt;
&amp;lt;td BACKGROUND=&amp;quot;&amp;lt;%= SkinPath %&amp;gt;image.jpg&amp;quot; ID=&amp;quot;LeftPane&amp;quot; RUNAT=&amp;quot;server&amp;quot; VISIBLE=&amp;quot;True&amp;quot;&amp;gt;&amp;lt;/td&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
But this will:
&lt;br /&gt;

&lt;br /&gt;
&amp;lt;td BACKGROUND=&amp;quot;&amp;lt;%= SkinPath %&amp;gt;image.jpg&amp;quot;&amp;gt;
&lt;br /&gt;
  &amp;lt;div id=”LeftPane” runat=”server”&amp;gt;&amp;lt;/div&amp;gt;
&lt;br /&gt;
&amp;lt;/td&amp;gt;
&lt;br /&gt;

&lt;br /&gt;
Alternatively, you can set the background image using CSS.
&lt;br /&gt;

&lt;br /&gt;
The ONLY reason pathing used to be used in CSS at all was to preserve it for some older browsers which did not implemente CSS appropriately (e.g. Netscape 4...).  But those days are gone.  CSS uses paths relative to the location of the CSS file... so this should be as everyone wants it to work.  No more path substitutions.
&lt;br /&gt;

&lt;br /&gt;
We've been able to apply this successfully to every skin we've encountered.  There should be NO reason to hack any code on this as long as you construct your skin with an understanding of the SkinPath variable and how CSS works.
&lt;br /&gt;

&lt;br /&gt;
Cheers,
&lt;br /&gt;
Scott</description></item><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/861740.aspx</link><pubDate>Thu, 17 Mar 2005 19:33:54 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:861740</guid><dc:creator>CasperJuna</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/861740.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=861740</wfw:commentRss><description>I think this thread is interesting for you: &lt;a href="/AspNetForums/ShowPost.aspx?&amp;PostID=858749"&gt;view post 858749&lt;/a&gt;
&lt;br /&gt;
I don't think it's a bug, but don't know that much about it...</description></item><item><title>Re: Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/861733.aspx</link><pubDate>Thu, 17 Mar 2005 19:27:36 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:861733</guid><dc:creator>Gabe Halsmer</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/861733.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=861733</wfw:commentRss><description>Here's the hack...
&lt;br /&gt;

&lt;br /&gt;
&lt;pre&gt;
&lt;br /&gt;
	' choose processing based on type of file
&lt;br /&gt;
	Select Case objSkinFile.FileExtension
&lt;br /&gt;

&lt;br /&gt;
                    Case &amp;quot;.htm&amp;quot;, &amp;quot;.html&amp;quot;
&lt;br /&gt;
                        ' replace paths, process control tokens and convert html to ascx format
&lt;br /&gt;
                        Me.Message += Me.PathFactory.Parse(objSkinFile.Contents, Me.PathFactory.HTMLList, objSkinFile.SkinRootPath, ParseOption)
&lt;br /&gt;
                        Me.Message += Me.ControlFactory.Parse(objSkinFile.Contents, objSkinFile.Attributes)
&lt;br /&gt;
                        Me.Message += objSkinFile.PrependASCXDirectives(Me.ControlFactory.Registrations)
&lt;br /&gt;

&lt;br /&gt;
&lt;b&gt;                    Case &amp;quot;.ascx&amp;quot;
&lt;br /&gt;
                        Me.Message += Me.PathFactory.Parse(objSkinFile.Contents, Me.PathFactory.HTMLList, objSkinFile.SkinRootPath, ParseOption)
&lt;br /&gt;

&lt;br /&gt;
                    Case &amp;quot;.css&amp;quot;
&lt;br /&gt;
                        Me.Message += Me.PathFactory.Parse(objSkinFile.Contents, Me.PathFactory.CSSList, objSkinFile.SkinRootPath, ParseOption)
&lt;br /&gt;
&lt;/b&gt;
&lt;br /&gt;
                End Select
&lt;br /&gt;
&lt;/pre&gt;
&lt;br /&gt;

&lt;br /&gt;
But its odd how the CSSList property still exists.  It makes me wonder if this code was removed accidentally.  Can anyone confirm this is a bug?</description></item><item><title>Why does skin no longer process ascx and css files?</title><link>http://forums.asp.net/thread/861714.aspx</link><pubDate>Thu, 17 Mar 2005 19:16:07 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:861714</guid><dc:creator>Gabe Halsmer</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/861714.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=90&amp;PostID=861714</wfw:commentRss><description>The ProcessList method has changed and now it only substitutes the href/url paths in htm and html files, not ascx and css files.  Take a look at line 221 of components\Skins\SkinFileProcessor.vb.  I compared it to DNN version 2, and sure enough it used to include files with ascx and css extensions.  
&lt;br /&gt;

&lt;br /&gt;
Does anyone now why it changed?  I can probably convert my ascx files to html, but my css files contain a lot of image references.  I don't see how I can fix them now.  Certainly I don't want to move those styles to the htm files.  I'm about ready to just hack the DNN code to get it working, but there must be reason for this, right?  Its not a bug is it?</description></item></channel></rss>