[TYPO3-mvc] enable fields
Jonas Eberle
jonas.eberle at d-mind.de
Mon Apr 20 08:14:33 CEST 2015
PropertyMapping does not work with hidden records. You can:
Remove it from the enablefields in tca.
Maybe at hidden with getters and setters to your model so that you are able to query for non-hidden records.
Look on this list. Ive had this problem some time ago.
Sorry for no example, i am on mobile right now.
Regards
-------- Original message --------
Subject: [TYPO3-mvc] enable fields
From: Christian Tauscher <christian.tauscher at media-distillery.de>
To: typo3-project-typo3v4mvc at lists.typo3.org
CC:
Hello.
In FE the user can create Records. These Records are hidden by default.
For listAction in my itemsRepository I have this method to show all:
public function findHidden() {
$query = $this->createQuery();
$query->getQuerySettings()->setIgnoreEnableFields(TRUE);
return $query->execute();
}
A Action confirmDeleteAction shows a Page "You really want to delete
Record###?"
If the record is visible (hidden=0) all works (can be deleted). But if
the record is hidden, the Action fails in a very early State.
Seems there is a Check for enableFields before the method is called
(DependencyInjecten ?)
How can I set "use the item even if its hidden" before I can call the
Repository?
Confused, but thankfull for help,
Christian.
_______________________________________________
TYPO3-project-typo3v4mvc mailing list
TYPO3-project-typo3v4mvc at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list