firesphere

Tells injector it's a class that should be injected and not just a string

nicolaas

can anyone be so kind to remind me what this means? > private static $dependencies = [ > 'service' => '%$Vendor\Project\Services\Foo', > ];

nicolaas

@firesphere - hence I want my modules to be available for SS4 , all its versions. Is that crazy?

mike_henden

Thanks @firesphere and @MichalKleiner — so I do a new page type (ie VirtualProductPage)?!

firesphere

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)

MichalKleiner

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

firesphere

Extend VirtualPage, e.g. VirtualProductPage and have it reference the controller to use

firesphere

It's because the VirtualPage is not inheriting the Controller

mike_henden

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?