[TYPO3-english] extbase/fluid extension as PLUGIN_TYPE_CONTENT_ELEMENT

Muriel le Pair typo3 at strangefruit.nl
Fri Jun 21 15:07:28 CEST 2013


On 20-06-13 21:15, Andreas Kiessling wrote:
> For new CTypes, you need to define the visible fields on your own.
> Have a look at the ext_tables.php from my demo extension that i created
> for our usergroup:
> https://github.com/akiessling/ak_accordion

Hi Andreas,

I have looked at the code of your extension, very helpful, but there is 
something I don't understand.

The accordionAction you created fetches the records by first getting the 
uid of the content element and use findByUid() to find the records.

public function accordionAction() {
    $data = $this->configurationManager->getContentObject()->data;
$this->view->assign('content',$this->contentRepository->findByUid($data['uid']));
}

But the uid of the content element is stored in tt_content_uid. What did 
you modify so that findByUid() searches in tt_content_uid instead of uid?

--
kind regards,

Muriel le Pair




More information about the TYPO3-english mailing list