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;
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
Basefunctions:if ($Sender->MasterView != '' || $Sender->MasterView != 'default') return;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