[TYPO3-mvc] how to get hidden element with standard method ?
Daniel Schöne
daniel at schoene.it
Fri Sep 23 08:35:11 CEST 2011
hi dawid,
if you want all your repository methods to ignore the hidden fields you
might want to overload initializeObject() like this:
public function initializeObject() {
$querySettings =
this->objectManager->create('Tx_Extbase_Persistence_Typo3QuerySettings');
$querySettings->setRespectStoragePage(FALSE);
$this->setDefaultQuerySettings($querySettings);
}
Notice that _all_ enable fields are ignored, not just the hidden field.
So further checks might be necessary depending on your use case.
cheers,
daniel
More information about the TYPO3-project-typo3v4mvc
mailing list