kinglozzer

I.e. when you use the “insert media” option, paste https://www.youtube.com/watch?v=NlOF03DUoWc and not https://www.youtube.com/embed/NlOF03DUoWc

Show 1 attachment(s)
YouTube  
Warner Bros. Pictures

YouTube Video: Man of Steel - "Fate of Your Planet" Official Trailer [HD]

Hide attachment content
kinglozzer

Did you paste the embed code in instead of the YouTube page URL?

kinglozzer

Backticks are only supported in injector definitions, so you’d probably need to use PHP to update the config values

kinglozzer

Entwine has namespaces, because why not? 😄

😂 (3)
kinglozzer

You might need $('#Form_ItemEditForm_Summary').entwine('ss').reload();

kinglozzer
  1. ---
  2. Name: app-middleware
  3. After: '#coresecurity'
  4. ---
  5. SilverStripe\Core\Injector\Injector:
  6. SilverStripe\Control\Director:
  7. properties:
  8. Middlewares:
  9. MyMiddleware: '%$App\Control\Middleware\MyMiddleware'

That should ensure it runs after the security middleware that handles logging the user in

kinglozzer

@Nemanja Karadzic You’ll need to adjust where your middleware is added by using Before: x or After: x in your YAML config