View more context

 

guttmann

might be getting loaded on the home page successfully by whatever "flexslider" is and that isn't being used elsewhere so your script is failing on other pages

guttmann

https://github.com/dynamic/silverstripe-flexslider/blob/4.0/templates/Includes/FlexSlider.ss#L29-L30

Show 1 attachment(s)
templates/Includes/FlexSlider.ss:29-30

<% require javascript('silverstripe/admin: thirdparty/jquery/jquery.js') %>
<% require javascript('dynamic/flexslider: thirdparty/flexslider/jquery.flexslider-min.js') %>
Hide attachment content
MichalKleiner

also, checking dev console is the first thing to do when some JS is misbehaving 😉

Marley

Hi there, can anyone point me in the direction of an example of adding a button the content WYSIWYG? This is just for adding a shortcode to the content. Also i'm using the silverstripe-elemental blocks

mike_henden

@guttmann, @MichalKleiner, thanks!! Wondered if it needed JQuery as well… I’ll check this out!

Yep, put a jquery call in first and it worked!👍🏻

purplespider

Ok, here's an odd one, I have a SilverStripe user account that seems to be permanently locked out, unless I change their e-mail address to something else. Getting "Your account has been temporarily disabled because of too many failed attempts at logging in. Please try again in 15 minutes." Checked in DB and LockedOutUntil is null. 🤔