I want it to show only on the main page. How do i do it. Thanks.
You could add this to the beginning of the two Base functions:
Base
if ($Sender->MasterView != '' || $Sender->MasterView != 'default') return;
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Thank you.
No worries, glad it worked out! Just for future reference, should anyone stumble upon this topic later on, there's a super easy way of doing the same thing in 2.1:
if (InSection('Dashboard') return; // ...or whatever you'd like
Comments
You could add this to the beginning of the two
Base
functions:Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub
Thank you.
No worries, glad it worked out! Just for future reference, should anyone stumble upon this topic later on, there's a super easy way of doing the same thing in 2.1:
Kasper Kronborg Isager (kasperisager) | Freelance Developer @Vanilla | Hit me up: Google Mail or Vanilla Mail | Find me on GitHub