Jump to:

3392 Posts in 976 Topics by 852 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: 643 Views
  • shakingpaper
    Avatar
    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
    Avatar
    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.

    643 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.