<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>MyLifeBBS &#187; Unique Container ID</title>
	<atom:link href="http://www.mylifebbs.com/tag/unique-container-id/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mylifebbs.com</link>
	<description>The World without Boundaries</description>
	<lastBuildDate>Sat, 05 Jun 2010 14:17:14 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Give an unique id for every DNN Containers</title>
		<link>http://www.mylifebbs.com/2009/10/give-an-unique-id-for-every-dnn-containers/</link>
		<comments>http://www.mylifebbs.com/2009/10/give-an-unique-id-for-every-dnn-containers/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 09:36:00 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[DotNetNuke]]></category>
		<category><![CDATA[Unique Container ID]]></category>

		<guid isPermaLink="false">http://www.mylifebbs.com/2009/10/give-an-unique-id-for-every-dnn-containers/</guid>
		<description><![CDATA[Inspired by Think of Design&#8217;s avoid span in module title and amount of requests including myself to have a unique id for every containers in DotNetNuke, I’ve came out with this simple solution to ease the designing works in DotNetNuke Skinning.


&#60;!-- From thinkofdesign.com --&#62;
&#60;%@ Control language=&#34;vb&#34; AutoEventWireup=&#34;false&#34; Explicit=&#34;True&#34; Inherits=&#34;DotNetNuke.UI.Containers.Container&#34; %&#62;
 &#60;%@ Register TagPrefix=&#34;dnn&#34; TagName=&#34;TITLE&#34; Src=&#34;~/Admin/Containers/Title.ascx&#34; [...]


Related posts:<ol><li><a href='http://www.mylifebbs.com/2010/01/guide-to-implement-re-captcha-in-dotnetnuke-modules-without-touching-the-source-code/' rel='bookmark' title='Permanent Link: Guide to implement re-Captcha in DotNetNuke Modules without touching the source code.'>Guide to implement re-Captcha in DotNetNuke Modules without touching the source code.</a></li>
<li><a href='http://www.mylifebbs.com/2009/06/dotnetnuke-customizing-your-login-part-3/' rel='bookmark' title='Permanent Link: DotNetNuke Customizing your Login &#8211; PART 3'>DotNetNuke Customizing your Login &#8211; PART 3</a></li>
<li><a href='http://www.mylifebbs.com/2009/03/how-to-modify-dotnetnuke-login-page-the-easy-way/' rel='bookmark' title='Permanent Link: How to modify DotNetNuke Login Page? The Easy Way.'>How to modify DotNetNuke Login Page? The Easy Way.</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Inspired by Think of Design&#8217;s <a href="http://www.thinkofdesign.com/blog/id/66/how-to-avoid-the-span-in-the-dnntitle.aspx" target="_blank">avoid span in module title</a> and amount of requests including myself to have a unique id for every containers in DotNetNuke, I’ve came out with this simple solution to ease the designing works in DotNetNuke Skinning.</p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&lt;!-- From thinkofdesign.com --&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&lt;%@ Control language=<span style="color: #006080">&quot;vb&quot;</span> AutoEventWireup=<span style="color: #006080">&quot;false&quot;</span> Explicit=<span style="color: #006080">&quot;True&quot;</span> <span style="color: #0000ff">Inherits</span>=<span style="color: #006080">&quot;DotNetNuke.UI.Containers.Container&quot;</span> %&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;%@ Register TagPrefix=<span style="color: #006080">&quot;dnn&quot;</span> TagName=<span style="color: #006080">&quot;TITLE&quot;</span> Src=<span style="color: #006080">&quot;~/Admin/Containers/Title.ascx&quot;</span> %&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;%@ Register TagPrefix=<span style="color: #006080">&quot;dnn&quot;</span> TagName=<span style="color: #006080">&quot;Actions&quot;</span> Src=<span style="color: #006080">&quot;~/Admin/Containers/Actions.ascx&quot;</span> %&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> </pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;dnn:title runat=<span style="color: #006080">&quot;server&quot;</span> id=<span style="color: #006080">&quot;dnnTitle&quot;</span> visible=<span style="color: #006080">&quot;false&quot;</span> /&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;% <span style="color: #0000ff">Dim</span> ModuleTitle <span style="color: #0000ff">As</span> <span style="color: #0000ff">String</span> = GetPortalModuleBase(dnnTitle).ModuleConfiguration.ModuleTitle %&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> </pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;div <span style="color: #0000ff">class</span>=<span style="color: #006080">&quot;common&quot;</span>&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;h3&gt;&lt;%= ModuleTitle %&gt;&lt;/h3&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;dnn:Actions runat=<span style="color: #006080">&quot;server&quot;</span> id=<span style="color: #006080">&quot;dnnActions&quot;</span> /&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;div id=<span style="color: #006080">&quot;ContentPane&quot;</span> runat=<span style="color: #006080">&quot;server&quot;</span> /&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px"> &lt;/div&gt; </pre>
</p></div>
</div>
<p>Using the same logic, we can retrieve the module id by modifying the DNN property code:</p>
<p><span id="more-274"></span></p>
<div style="border-bottom: gray 1px solid; border-left: gray 1px solid; padding-bottom: 4px; line-height: 12pt; background-color: #f4f4f4; margin: 20px 0px 10px; padding-left: 4px; width: 97.5%; padding-right: 4px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; max-height: 200px; font-size: 8pt; overflow: auto; border-top: gray 1px solid; cursor: text; border-right: gray 1px solid; padding-top: 4px">
<div style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: white; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&lt;% <span style="color: #0000ff">Dim</span> ConModule <span style="color: #0000ff">As</span> DotNetNuke.Entities.Modules.ModuleInfo = DotNetNuke.UI.Containers.Container.GetPortalModuleBase(<span style="color: #0000ff">Me</span>).ModuleConfiguration %&gt;</pre>
<pre style="border-bottom-style: none; padding-bottom: 0px; line-height: 12pt; border-right-style: none; background-color: #f4f4f4; margin: 0em; padding-left: 0px; width: 100%; padding-right: 0px; font-family: consolas, &#39;Courier New&#39;, courier, monospace; border-top-style: none; color: black; font-size: 8pt; border-left-style: none; overflow: visible; padding-top: 0px">&lt;div id=<span style="color: #006080">&quot;Container&lt;%=ConModule.ModuleID %&gt;&quot;</span> <span style="color: #0000ff">class</span>=<span style="color: #006080">&quot;PekoOutterCon con180&quot;</span>&gt;</pre>
</p></div>
</div>
<p>Theoretically, all you need to do is to change the .ModuleTitle to .ModuleID. Since CSS id cannot start with a number, you will need to add some word before calling out the ModuleID in the div.</p>
<p>However, you will find that if you logout from DNN, the module will failed to call out the correct ModuleID.</p>
<p>Thus, you will have to define that correct container and ModuleInfo.</p>
<p>Now you can change the individual container without interfering with other DNN Container.</p>


<p>Related posts:<ol><li><a href='http://www.mylifebbs.com/2010/01/guide-to-implement-re-captcha-in-dotnetnuke-modules-without-touching-the-source-code/' rel='bookmark' title='Permanent Link: Guide to implement re-Captcha in DotNetNuke Modules without touching the source code.'>Guide to implement re-Captcha in DotNetNuke Modules without touching the source code.</a></li>
<li><a href='http://www.mylifebbs.com/2009/06/dotnetnuke-customizing-your-login-part-3/' rel='bookmark' title='Permanent Link: DotNetNuke Customizing your Login &#8211; PART 3'>DotNetNuke Customizing your Login &#8211; PART 3</a></li>
<li><a href='http://www.mylifebbs.com/2009/03/how-to-modify-dotnetnuke-login-page-the-easy-way/' rel='bookmark' title='Permanent Link: How to modify DotNetNuke Login Page? The Easy Way.'>How to modify DotNetNuke Login Page? The Easy Way.</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.mylifebbs.com/2009/10/give-an-unique-id-for-every-dnn-containers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
