Hello everyone,
I’m a beginner with Kirby and I am stuck on a simple thing, which drives me crazy !
I just want to create a simple URL parameter. To get this I’m using this kind of link:
<a href='<?= $page->url()?>?view=grid'>
which load the url localhost:8888/plainkit-master/projects/?view=grid
No problem for the moment. However when I do this:
<? if (isset($_GET['view']) ) && $_GET['view']=='grid') { ?>
MY HTML WHEN GRID PARAMETERS
<?
}
else { ?>
MY HTML WHEN GRID PARAMETERS IS NOT SET
<? } ?>
It always give me the else parameters.
Is there a Kirby way of doing that ? Or Am I missing a rookie mistake ?
Thanks a lot!