Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID Sign In with Twitter

In this Discussion

How might I conditionally add a module in my plugin?

I don't want it added in the dashboard... My dashboard is getting a bit cluttered already.

My addons: NillaBlog | Vanoogle

Best Answer

  • peregrineperegrine MVP
    Answer ✓

    i've got no thoughts on other way. what you said.

      if (!preg_match('/dashboard/',$Sender->SelfUrl))
                  $Sender->AddModule("SubscribeModule");
    
    

    get the buttonbar back - it was much easier to paste code.


    factoid: Most questions have been previously answered, try the search box first, please provide your Vanilla version Number!

    Peregrine's Addons - donations gladly accepted for "successful solutions" and addons - kind of like tipping a waiter at a restaurant

    UnderDog

Answers

This discussion has been closed.