[TYPO3-mvc] custom query including the hidden Elements
jochen.rau at typoplanet.de
Tue May 18 17:21:12 CEST 2010
On 18.05.10 16:48, Jonas Götze wrote:
> I am writing a custom query where I am trying to find _all_ (undeleted)
> elements of a table, whether they are hidden or not.
> If I search by UID (which has hidden = 1) for example
> I get no result.
> So I tried something like the following
> $query->like('hidden', '%'),
> which wont work too.
> I also tried various variants like
> hidden equals 1
> or something similiar but I can't seem to get the hidden elements.
> Is it impossible using the custom query?
Try to set the enable fields setting to FALSE:
$result = $query->execute();
More information about the TYPO3-project-typo3v4mvc