Last active
February 4, 2016 12:26
-
-
Save shoesforindustry/5982545 to your computer and use it in GitHub Desktop.
#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`
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I just noticed this GIST. There is kirby function for that, its not much smaller but looks better.
<?php foreach($page->tags()->split(',') as $tag): ?>
Will work the same.