Jump to:

23355 Posts in 17702 Topics by 2862 members

General Questions

SilverStripe Forums » General Questions » Requirements::Block a custom script

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2016 Views
  • merrick_sd
    Avatar
    Community Member
    94 Posts

    Requirements::Block a custom script Link to this post

    if i have a custom script on may page controller called bannercycle

    --- example ---
          Requirements::customScript("
    // whatever jsscript
          ", 'bannercycle');

    ------

    How can i block it on a different page controller?

    would it be like this    Requirements::block('bannercycle');

    2016 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.