-
Notifications
You must be signed in to change notification settings - Fork 21
12 - Add a location filter to the events overview page #17
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
base: assignment/11
Are you sure you want to change the base?
Conversation
d6c84b1 to
e308bd0
Compare
0a8406b to
b088af2
Compare
e3ef375 to
89eb451
Compare
3503ec3 to
4030c29
Compare
89eb451 to
29ff4d4
Compare
4030c29 to
58ef1d6
Compare
29ff4d4 to
159f28a
Compare
58ef1d6 to
90219e8
Compare
72306bd to
f921a74
Compare
4347542 to
b18cd02
Compare
8b288bc to
e33a7bb
Compare
dadb184 to
b48485d
Compare
e33a7bb to
6086912
Compare
6086912 to
7377396
Compare
102b1e7 to
e70114a
Compare
7377396 to
5ff6cdf
Compare
e70114a to
bf0011e
Compare
1af5785 to
7e174f3
Compare
636e0fb to
8c7a370
Compare
53bc591 to
f27b7b7
Compare
81ea06c to
2aab5a2
Compare
25529e5 to
ea71bcd
Compare
9bdcd17 to
605eb3b
Compare
2de275c to
a7c77db
Compare
53e124f to
fef235f
Compare
611bf1a to
f739c78
Compare
98bb85c to
ef7af27
Compare
|
Guys, is this supposed to work properly because I cannot get it to work at all and I am an experienced dev. I tried this https://docs.sulu.io/en/2.4/cookbook/custom-controller.html but to no avail and am getting |
|
@costeaalex the |
I figured it out eventually, thanks. I think what would be helpful though is to offer the preferred solution to these problems as well so that people less experienced manage to get through it in a reasonable time span ;). Thanks for the input. You will probably be hearing from me for some consultancy and if we adopt the CMS we will contribute :P. |
|
@costeaalex If there is anything we can improve in the documentation, we are happy for any pul request there: https://docs.sulu.io/en/2.4/cookbook/custom-controller.html. Happy to hear you give sulu a try, you can reach us over our website or our slack channel for any questions. |
27a29f3 to
b622996
Compare
9c1d600 to
46ebabb
Compare
1446313 to
83977e6
Compare
46ebabb to
648f01e
Compare
105a116 to
4eb2a81
Compare
84d1c83 to
3dd94bd
Compare
51ed095 to
51e1fdb
Compare
3dd94bd to
2af3a0a
Compare
51e1fdb to
a2ba9fb
Compare
2af3a0a to
7fafc05
Compare
Add a location filter to the events overview page
Goal
After adding an association between our
Locationentity and ourEvententity in the last assignment, we cannow easily query events for a specific location. We want to make use of this by adding a location filter to the
events overview page of our website.
Steps
App\Controller\EventOverviewControllereventsproperty from theevent_overviewtemplateApp\Controller\EventOverviewControllerin yourevent_overviewtemplateEventRepositoryto load events in yourEventOverviewControllerLocationRepositoryto load locations in yourEventOverviewControllertemplates/events/index.html.twigfilterByLocationIdmethod to yourApp\Repository\EventRepositoryfilterByLocationIdmethod with the submitted value in yourEventOverviewControllerHints
More Information
Links