Zikula 1.4.5 - Custom Filtering of Blocks

  • Hello there!

    Custom filtering capabilities are looking very powerful in Zikula 1.4.5.

    It would be great if somebody could explain how to use these filters?

    For example I would like to filter a list of elements (Module built with MOST) against the current user, so that he can only see his own.

    Would that be possible with the options given in the Blocks administration?

    Any help is very welcome!

    Best Regards
    Dirk
  • dirkthiele

    For example I would like to filter a list of elements (Module built with MOST) against the current user, so that he can only see his own.
    Would that be possible with the options given in the Blocks administration?


    I don't think so. Blocks are filterable based on the current information in the query parameters and the request attributes. This includes stuff like `_locale` and `_route` as well as anything you might add to your own query like `pagenum` or whatever.

    In order to filter by uid, you would need to add that to the query params or attributes somehow. But this is not standard in most queries.
  • Hi Craigh,

    thank you for the answer.
Moderated by: Support (Group)