Using Query Parameters
- CrazyBread
- Master Bludit
- Posts: 73
- Joined: Tue Jan 19, 2016 9:51 pm
- Location: Germany
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
I'm writing a little calendar plugin which shows a complete month.
It has two buttons "prev month" and "next month" to switch the current displayed month.
Per default, the calendar is shown on a particular page:
http://localhost:8080/index.php/kalender
this works just fine.
When I now want to see the previous or next month, my plugin is looking for some query parameters:
http://localhost:8080/index.php/kalende ... &year=2021
> Show Month August of year 2021.
Sadly, Bludit is showing me the "site does not exist" page.
How can I say bludit to ignore these query parameters so that my plugin can receive these?
Or is there a better way to do this?
It has two buttons "prev month" and "next month" to switch the current displayed month.
Per default, the calendar is shown on a particular page:
http://localhost:8080/index.php/kalender
this works just fine.
When I now want to see the previous or next month, my plugin is looking for some query parameters:
http://localhost:8080/index.php/kalende ... &year=2021
> Show Month August of year 2021.
Sadly, Bludit is showing me the "site does not exist" page.
How can I say bludit to ignore these query parameters so that my plugin can receive these?
Or is there a better way to do this?
- Edi
- Site Admin
- Posts: 3121
- Joined: Sun Aug 09, 2015 5:01 pm
- Location: Zurich
- Has thanked: 54 times
- Been thanked: 77 times
- Contact:
?month=08&year=2021 works for me.CrazyBread wrote: ↑Mon Jul 26, 2021 4:45 pm When I now want to see the previous or next month, my plugin is looking for some query parameters:
http://localhost:8080/index.php/kalende ... &year=2021
> Show Month August of year 2021.
Sadly, Bludit is showing me the "site does not exist" page.
Why do you use index.php?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
- CrazyBread
- Master Bludit
- Posts: 73
- Joined: Tue Jan 19, 2016 9:51 pm
- Location: Germany
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
I pasted the complete URL of the browser.
You are right. When I remove "index.php" it works.
After I click on Prev or next month it reappears... strange.
You are right. When I remove "index.php" it works.
After I click on Prev or next month it reappears... strange.
- CrazyBread
- Master Bludit
- Posts: 73
- Joined: Tue Jan 19, 2016 9:51 pm
- Location: Germany
- Has thanked: 4 times
- Been thanked: 5 times
- Contact:
I fixed it by building the links with "$page->permalink()".
Now it works like a charm!
Thanks for the hint!
Now it works like a charm!
Thanks for the hint!