Skip to content

Instantly share code, notes, and snippets.

View shoesforindustry's full-sized avatar

shoes for industry shoesforindustry

View GitHub Profile
@shoesforindustry
shoesforindustry / Comma separated linked tags list code
Last active February 4, 2016 12:26
#Kirby CMS Produce a comma separated list of tags or categories for a tag/category link list. `$page->tags()` in this case is my array. `tagURL` is of course either category or tags maybe, depending what you are doing in the URL e.g. `http://website.dev/tagURL:tag`
<!-- Code to create a comma seperated linked tags list -->
<ul>
<?php foreach(str::split($page->tags(),',') as $tag): ?>
<li>
<a href="<?php echo url('tagURL/tag:' . urlencode($tag))?>">
<?php echo $tag ?>
</a>
</li>
<?php endforeach ?>
</ul>
@shoesforindustry
shoesforindustry / kirbycms-individualmultifilterby.php
Last active August 30, 2016 12:55
Kirby CMS Individual Multi Filter based on FilterBy with form selection. The idea was to be able to add fields to pages and be able to have a set of individual filters to select pages which match *some or all* of the filters. Select your filters and then hit the 'Filter' button: A list of selected filters will be displayed and if there are match…
<?php
#Pages have these fields, the can have comma separated values for group, category and option
# Title: Event1
# ----
# Group: Group1
# ----
# Category: Cat2
# ----
@shoesforindustry
shoesforindustry / kirbycms-multifilterby.php
Last active July 18, 2024 11:15
Kirby CMS Multi Filter based on FilterBy with form selection. The idea was to be able to add fields to pages and be able to have a combined multi-filter to select pages which match *all* the filters. Select your filters and then hit the 'Filter' button: A list of selected filters will be displayed and if there are matches the pages names are dis…
<?php
#Pages have these fields, they can have comma separated values for group, category and option
# Title: Event1
# ----
# Group: Group1
# ----
# Category: Cat2
# ----
# Option: Option1