<?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[Modul CalendarExt3Agenda]]></title><description><![CDATA[<p dir="auto">Hello,<br />
I would like to combine the two functions eventFilter and eventTransform.<br />
Here is the example:</p>
<p dir="auto">eventFilter: (ev) =&gt; {<br />
if (ev.title.search(“Natalia:”)) return false<br />
return true<br />
},<br />
eventTransform: (ev) =&gt; {<br />
if (ev.title.search(“Natalia:”) &gt; -1) ev.title=ev.title.replace(“Natalia:”,“”);<br />
return ev<br />
}</p>
<p dir="auto">But only the first function (Filter) works, but not the second (Transform)</p>
<p dir="auto">Can someone please help me with this?<br />
Thanks</p>
]]></description><link>https://forum.magicmirror.builders/topic/18707/modul-calendarext3agenda</link><generator>RSS for Node</generator><lastBuildDate>Thu, 18 Jun 2026 04:31:24 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/18707.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 30 Apr 2024 15:21:02 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Thu, 02 May 2024 15:41:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mmrize" aria-label="Profile: MMRIZE">@<bdi>MMRIZE</bdi></a> Thank you very much, it works now!</p>
]]></description><link>https://forum.magicmirror.builders/post/117465</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117465</guid><dc:creator><![CDATA[Old_Death]]></dc:creator><pubDate>Thu, 02 May 2024 15:41:54 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Thu, 02 May 2024 13:29:38 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a><br />
Sorry, there was still another hidden formatting-twice issue. (in <code>onlyEventDays</code>. I didn’t check that part on the previous update.)<br />
I fixed it now.<br />
<img src="/assets/uploads/files/1714656574186-90b3edb1-a5cf-4ba3-b488-e0597cde049c-image.png" alt="90b3edb1-a5cf-4ba3-b488-e0597cde049c-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/117463</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117463</guid><dc:creator><![CDATA[MMRIZE]]></dc:creator><pubDate>Thu, 02 May 2024 13:29:38 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Thu, 02 May 2024 12:38:45 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a> I’m javascript, both the single and double quotes are acceptable</p>
<p dir="auto">note. sometimes in the forum if the text is not in a code  block, these characters are shown as word processing form , curved, like this<br />
’<br />
or<br />
"<br />
Instead of the text form</p>
<pre><code class="language-text">' or "
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/117462</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117462</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 02 May 2024 12:38:45 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Thu, 02 May 2024 12:30:30 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mmrize" aria-label="Profile: MMRIZE">@<bdi>MMRIZE</bdi></a> said in <a href="/post/117449">Modul CalendarExt3Agenda</a>:</p>
<blockquote>
<p dir="auto">’<br />
I also have a fundamental question of understanding.<br />
The ’ character is used in the examples here.<br />
I have to use the character " for it to work.<br />
Why is that?</p>
</blockquote>
]]></description><link>https://forum.magicmirror.builders/post/117461</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117461</guid><dc:creator><![CDATA[Old_Death]]></dc:creator><pubDate>Thu, 02 May 2024 12:30:30 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Thu, 02 May 2024 12:30:00 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mmrize" aria-label="Profile: MMRIZE">@<bdi>MMRIZE</bdi></a><br />
thanks for the answer and the patch.</p>
<p dir="auto">I installed this, but unfortunately there was no improvement in the result.<br />
If I enter it like in the example, there are no more entries.</p>
<p dir="auto">The points for the appointments are only displayed correctly in the mini calendar.</p>
<p dir="auto">Here is my config for the module.</p>
<pre><code class="language-js">{
      module: "MMM-CalendarExt3Agenda",
      carouselId: "Seite2",
      position: "top_left",
      header: "Natalia",
      config: {
      instanceId: "basicCalendar",
      locale: 'de-DE',
      firstDayOfWeek: 1,
      startDayIndex: -1,
		  endDayIndex: 15,
      onlyEventDays: 15,
      eventFilter: (ev) =&gt; {
	         return (ev.title.search("Natalia:") &gt; -1)
      },
      eventTransformer: (ev) =&gt; {
	         ev.title = ev.title.replace("Natalia:", "")
	         return ev
     }
     }
     },
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/117460</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117460</guid><dc:creator><![CDATA[Old_Death]]></dc:creator><pubDate>Thu, 02 May 2024 12:30:00 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Wed, 01 May 2024 16:11:54 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a><br />
I updated it to 1.4.4. Please update or reinstall the module.<br />
I found a bug about twice applying the user event filter/transformer on the drawing miniMonth and agenda board.<br />
However, that is not the real reason for your symptoms. You just made a mistake on your filtering. (You drop out “Natalia” events by filtering, so they were not able to be transformed.)</p>
<p dir="auto">Anyway, here is my example.</p>
<pre><code class="language-js">eventFilter: (ev) =&gt; {
	return (ev.title.search('Test') &gt; -1)
},
eventTransformer: (ev) =&gt; {
	ev.title = ev.title.replace('Test', '@')
	return ev
}
</code></pre>
<p dir="auto">This code means</p>
<ol>
<li>Filter out all other events except the event which has <code>Test</code> in the title.</li>
<li>Then transform <code>Test</code> to <code>@</code>.</li>
</ol>
<p dir="auto">You can see the result below;</p>
<p dir="auto"><strong>ORIGINAL</strong><br />
<img src="/assets/uploads/files/1714579731750-21e51508-cc39-4d7c-b4e3-26bf529fffa3-image-resized.png" alt="21e51508-cc39-4d7c-b4e3-26bf529fffa3-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto"><strong>CONFIGURED</strong><br />
<img src="/assets/uploads/files/1714579795389-110dc1c0-e375-4fe4-afc7-aa69228d9636-image-resized.png" alt="110dc1c0-e375-4fe4-afc7-aa69228d9636-image.png" class=" img-fluid img-markdown" /></p>
]]></description><link>https://forum.magicmirror.builders/post/117449</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117449</guid><dc:creator><![CDATA[MMRIZE]]></dc:creator><pubDate>Wed, 01 May 2024 16:11:54 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Wed, 01 May 2024 13:55:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a><br />
Sorry, there was a bug that filtering or transforming performs twice, I’ll fix it soon.</p>
]]></description><link>https://forum.magicmirror.builders/post/117443</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117443</guid><dc:creator><![CDATA[MMRIZE]]></dc:creator><pubDate>Wed, 01 May 2024 13:55:19 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Wed, 01 May 2024 13:23:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a><br />
You want;</p>
<ol>
<li>Only events which have title “Natalia” would be shown, others should be filtered out.</li>
<li>Then the event (with title “Natalia”) should change its title. Right?</li>
</ol>
]]></description><link>https://forum.magicmirror.builders/post/117441</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117441</guid><dc:creator><![CDATA[MMRIZE]]></dc:creator><pubDate>Wed, 01 May 2024 13:23:24 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Wed, 01 May 2024 04:46:48 GMT]]></title><description><![CDATA[<p dir="auto">I only want the dates to be shown with the title “Natalia”. These titles should then be changed. The text “Natalia” should be removed here.</p>
]]></description><link>https://forum.magicmirror.builders/post/117439</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117439</guid><dc:creator><![CDATA[Old_Death]]></dc:creator><pubDate>Wed, 01 May 2024 04:46:48 GMT</pubDate></item><item><title><![CDATA[Reply to Modul CalendarExt3Agenda on Tue, 30 Apr 2024 22:33:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/old_death" aria-label="Profile: Old_Death">@<bdi>Old_Death</bdi></a><br />
It is contradiction. You can’t do both thing - drop the event or replace the title at same time. What is your purpose? (And filtering is executed primarily than transforming)</p>
]]></description><link>https://forum.magicmirror.builders/post/117438</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/117438</guid><dc:creator><![CDATA[MMRIZE]]></dc:creator><pubDate>Tue, 30 Apr 2024 22:33:07 GMT</pubDate></item></channel></rss>