Message of the day:
Welcome to SilverStripe | Current stable: https://goo.gl/C4F1T9 | Feature requests: https://goo.gl/EcQ34L | Community Forum: https://forum.silverstripe.org | StripeCon EU 2019! https://stripecon.eu
If you have any SilverStripe related questions, please supply the version of Framework you're using.
Did you flush? 🚽 =
Tells injector it's a class that should be injected and not just a string
can anyone be so kind to remind me what this means? > private static $dependencies = [ > 'service' => '%$Vendor\Project\Services\Foo', > ];
@firesphere - hence I want my modules to be available for SS4 , all its versions. Is that crazy?
Yeah, that would work too. I suggested the other way, because it would make it clearer which virtual page should be used (less obfuscated behaviour for the CMS user)
or move your getters to the actual holder page (if they’re on the controller), virtual page passes all the unresolved calls to the source page
Extend VirtualPage, e.g. VirtualProductPage and have it reference the controller to use
It's because the VirtualPage is not inheriting the Controller
Good morning people. Curious one I’ve just found — I have a client that has
Product pages displayed on a
ProductHolder page type. He wants to display the
ProductHolder page as a virtual page on different parts of the site (this is to do with only entering
Product information once). However the
ProductHolder virtual page only displays the page headings, not the
Product page information that should also be showing (i.e. it is not a complete copy). Can anybody tell me what’s going on?