-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SmartContent allow Filter Params #47
Comments
Currently we don't have any "resolveFilter" in the SmartContent component yet these would have to be added in the "NewsDataProvider.php", like for example in the SnippetSmartContent component |
Welll... I played around a bit, seems to work with
Would be great to have that manageable by the client, but i'm happy if it works that way. |
I've digged deeper into that filter issue. To get it to work I've added several methods in my repository class which are responsible for ordering and filtering for types (I made this to filter nearly every custom field, e.g. date comparison), tags and categories. See https://github.com/manuxi/SuluEventBundle/blob/afb1fab9f23f7b5a10e2ccd0c1987d31a1eac8fa/src/Repository/EventRepository.php#L221 - I think this would fit in your repository class with few adjustments... |
I'd like to filter the news by tag but it doesn't work this way:
Is this possible at all?
The text was updated successfully, but these errors were encountered: