Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

Search box causing Javascript to fail (content slider)


Go to End


3 Posts   1909 Views

Avatar
vivilanco

Community Member, 19 Posts

12 April 2011 at 11:16pm

Edited: 12/04/2011 11:53pm

Hi all...

I have a content slider in on one of my pages I am building but when I add the search element

FulltextSearchable::enable();
in _config.php in my site it kills the slider ability.

http://clients.vivilanco.com/sandbox/greenhomes/ - has the search element in _config and slider is broken.

I was wondering if anyone has had anything similar to this / could offer to shine a light on my issue...
or has developed a content slider for SS similar to this?

Thanks

Avatar
kylehudson00

Community Member, 22 Posts

19 May 2011 at 5:07pm

Is this a jQuery based slider? If so, try encasing your script within the following:

<script type="text/javascript">
(function($) {

<Your scripting>

})(jQuery);
</script>

Avatar
Richi

Community Member, 16 Posts

4 November 2011 at 11:39pm

Thank you kylehudsonoo, your solution solved the problem for me!