[TYPO3-dev] New page type calling plugin through Typoscript

Olle Haerstedt o.haerstedt at bitmotion.de
Wed Sep 17 09:46:37 CEST 2014


Quote: Helmut Hummel wrote on Tue, 16 September 2014 19:33
----------------------------------------------------
> Hi Olle!
> 
> On 16.09.14 14:56, Olle Haerstedt wrote:
> > Hm, maybe `settings.productid = page:productid`.
> >
> > But that's not really what I want still. This is the function signature:
> >
> > public function showAction(\Wd\Domain\Model\Product $product)
> >
> > I want to feed `page:productid` (the uid) to the action so that it instantiates the $product
> > object automatically, just like it would do if it was called from, say, a link action. Is this
> > possible?
> 
> There is, but I'm not sure if this is the right way to do it.
> Can you more generally describe what you want to achieve?
> 
> Kind regards,
> Helmut
> 
> -- 
> Helmut Hummel
> Release Manager TYPO3 6.0
> TYPO3 CMS Active Contributor, TYPO3 Security Team Member
> 
> TYPO3 .... inspiring people to share!
> Get involved: typo3.org
----------------------------------------------------

We wanted to add a new page type to aid the BE editors, and also easily 
create a menu with all products from the page tree. The alternative would be to
use the showAction "normally", and make a menu of link actions with different
product ids. The products also belong to a sys_category.



More information about the TYPO3-dev mailing list