Jump to:

3444 Posts in 1030 Topics by 871 members

Template Questions

SilverStripe Forums » Template Questions » Blocking scripts from search results

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

Page: 1
Go to End
Author Topic: 671 Views
  • shakingpaper
    Community Member
    15 Posts

    Blocking scripts from search results Link to this post

    For some reason, scripts I have in my HomePage.php file are being called into the search results page. I have tried creating a SearchPage.php, placing the search snippets from the Page.php file and adding the Requirements::block function for the specific .js files with no luck.

    If I want to block .js in search results, where which file should I edit?

  • baba-papa
    Community Member
    279 Posts

    Re: Blocking scripts from search results Link to this post

    This is a very strange bahaviour. It might be that you included your scripts the wrong way.

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.