[TYPO3-dev] Object-Structure filtered by child object's owner

Helmut Hummel helmut.hummel at typo3.org
Tue Aug 11 23:31:17 CEST 2015


Hi!

This is a fairyl complex problem. I was not able to solve something 
similar with the query language. If you or somebody else finds an 
elegant solution, let me know ;)

DirkHo wrote:
> Hi all,
>
> I'm just creating my first extension and therefore I want to run over an
> object structure in fluid and recursively display all child objects of
> the "Main" object. E.g. the structure looks like:
>
> - Main
> -- Child 1
> --- Child of Child 1
> ----- OWNER: User 1
> --- Child of Child 2
> ----- OWNER: User 2
> --- Child of Child 3
> ----- OWNER: User 3
> -- Child 2
> --- Child of Child 1
> ----- OWNER: User 1
> -- Child 3
> --- Child of Child 1
> ----- OWNER: User 2
>
> For example I now want to filter the Main object to only fetch the child
> objects that are owned by User 1.
> Therefore I would expect the following structure to be returned:
>
> - Main
> -- Child 1
> --- Child of Child 1
> ----- OWNER: User 1
> -- Child 2
> --- Child of Child 1
> ----- OWNER: User 1
>
> The other Child and Child of Child objects should not be returned to
> fluid, because they are owned by other users.
>
> Is there a possibility to do so? I couldn't really find a good
> introduction to the query language used and by default the
> MainRepository does not have that much methods by default.
>
> Thanks and kind regards,
>
> Dirk
>


Kind regards,
Helmut

-- 
Helmut Hummel
Release Manager TYPO3 6.0
TYPO3 CMS Active Contributor, TYPO3 Security Team Member

TYPO3 .... inspiring people to share!
Get involved: typo3.org



More information about the TYPO3-dev mailing list