<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Hide a module by default]]></title><description><![CDATA[<p dir="auto">Hi all,</p>
<p dir="auto">I try to modify an existing module to put the fonctionnality for hidden it by default when the mirror start</p>
<p dir="auto">explanation : i have the MMM-WiFiPassword configured on the first page, and i want it to not show when the Mirror started, and after that i can ask my assistant to show the wifi for a period.</p>
<p dir="auto">I know i can hide it manually with RemoteControl, but i really want it to be Hidden at the start of the mirror.</p>
<p dir="auto">have you an idea to help me ?</p>
<p dir="auto">Thanks in advance!</p>
]]></description><link>https://forum.magicmirror.builders/topic/12947/hide-a-module-by-default</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 07:31:18 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/12947.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 29 May 2020 19:43:40 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Hide a module by default on Sat, 30 May 2020 11:53:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/burnallover" aria-label="Profile: Burnallover">@<bdi>Burnallover</bdi></a> getDom() needs to return something, but u don’t want your content displayed. so</p>
<pre><code>hidden: false, 


suspend: function(){
    this.hidden=true
},

restore: function(){
     this.hidden=false
},

notificationReceived: function(notification, payload, source){
   // this comes before the first call to getDom()
   if(notification === "ALL_MODULES_STARTED")
      this.hidden=true;
}.

getDom: function (){
var wrapper=document.createElement('div')
if(this.hidden==false){ 
     //create normal content
}
return wrapper;
},</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/76110</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/76110</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sat, 30 May 2020 11:53:15 GMT</pubDate></item><item><title><![CDATA[Reply to Hide a module by default on Fri, 29 May 2020 20:00:57 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> thank for your response ! :)</p>
<p dir="auto">I already tried to put something like that on function :</p>
<pre><code>if (this.config.hide) {
		this.hide()
	}
</code></pre>
<p dir="auto">but i need some help for the getDom() part, i’m sorry i’m not a developper, can you give me an example of what it should be? sorry for my english, i’m french…</p>
]]></description><link>https://forum.magicmirror.builders/post/76109</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/76109</guid><dc:creator><![CDATA[Burnallover]]></dc:creator><pubDate>Fri, 29 May 2020 20:00:57 GMT</pubDate></item><item><title><![CDATA[Reply to Hide a module by default on Fri, 29 May 2020 19:50:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/burnallover" aria-label="Profile: Burnallover">@<bdi>Burnallover</bdi></a> in whatever function in the modulename.js</p>
<pre><code>this.hide()
</code></pre>
<p dir="auto">will hide the module<br />
and then check in the getDom() and only return an empty div  (return the wrapper with nothing in it)</p>
]]></description><link>https://forum.magicmirror.builders/post/76107</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/76107</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Fri, 29 May 2020 19:50:37 GMT</pubDate></item></channel></rss>