[TYPO3-50-general] Pass content settings to controller of plugin

Piseth Sok piseth at web-essentials.asia
Mon Jan 28 10:24:36 CET 2013


Hi List,

I have found it.

/**
  * Shows a list of news in front end
  *
  * @param int $vid
  * @return void
  */
public function listAction() {
	$identifier = $this->request->getPluginArguments('vid');
	$this->view->assign('news', 
$this->newsRepository->findByIdentifier($identifier));
}

Cheers,
Piseth

On 01/28/2013 09:56 AM, Piseth Sok wrote:
> Hi List,
>
> This is my setting:
>
> prototype(We.Newsplugin:Plugin) < prototype(TYPO3.Neos.ContentTypes:Plugin)
> prototype(We.Newsplugin:Plugin) {
>       package = 'We.Newsplugin'
>       controller = 'News'
>       action = 'detail'
>       vid = 23
> }
>
> I want to pass vid to action detail
> How can I?
>
> Thanks,
> Piseth
>
> On 01/24/2013 03:29 PM, Piseth Sok wrote:
>> Hi Group,
>>
>> I have created contenttype plugin and I want to set settings and pass to
>> controller of my plugin.
>>
>> Any ideas?
>>
>> Thanks,
>> Piseth
>



More information about the TYPO3-project-5_0-general mailing list