I have build an extension with the extension builder that handles objects
, an object
can be an "item" or a "project".
An object has a field status
which has 4 options, and is filled with an integer (3 = sold).
An object can be signed as a "project", in that case it has a boolean 1 for isproject
and a field items
with related objects as items.
this all works fine, I can iterate trough the projects with my fluid template and with <f:count>{object.items}</f:count>
display the number of items appartaining to the project.
In the same fashion I should display the count of only the sold items ...
(<f:count where="object.items.status == 3">{object.items}</f:count>
this obviously does not work, just to render the idea)
with <f:debug>{object}</f:debug>
I see the field status
defined for all items ...
since I have no idea how to approch this I might have left out some vital information