How do "mktoActive" and "mktoAddByDefault" actually work?
Hello,
Hopefully I have selected the right post location for this.
I've seen a few community posts on this, but I have not yet been able to wrap my head around it with those resources.
I am creating an email template and I am having trouble understanding "mktoActive" and "mktoAddByDefault" and how they work together.
My goal is to have all of my modules in the sidebar/Modules tab, and then also have a few of those on the "canvas" when an email is created from our templates.
For example, I have a module that I want to be listed in Modules tab and also NOT display on a newly created email using this template.
Here is the markup I currently have:
<tr class="mktoModule" id="module-name" mktoName="Module Name" mktoActive="true" mktoAddByDefault="false">
With this, the module is not added on creation, but also not in the Modules sidebar tab.
What I found in the documentation:
- mktoActive: Determines whether this module appears in the list of modules within the email editor. Defaults to true. If false, the module cannot be added by an end user to an email.
- mktoAddByDefault: Determines whether this module will be in the canvas of a new email that uses this template upon creation. Defaults to true (if mktoActive is false, this value is ignored).
From my understanding, the mktoActive attribute determines if the module appears in the modules tab in the sidebar and the mktoAddByDefault attribute determines if the module should display in an email using this template at creation. (true=visible, false=hidden, for both)
I had originally just omitted mktoActive, set mktoAddByDefault to true or false (depending on the module) and when I was adding my code to my design studio email it did reflect what I needed.
Once I created a template and then created a new email out of that template... the modules that weren't on the "canvas" were not in the sidebar Modules tab either. (the ones that exited on the canvas were in the Modules tab)
<tr class="mktoModule" id="module-name" mktoName="Module Name" mktoAddByDefault="false">
What am I understanding/doing wrong? 😅
Thanks!