Add links for each category name in the category blocks
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Mar 2016 14:45:28 +0000 (09:45 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 9 Mar 2016 14:45:28 +0000 (09:45 -0500)
goes to the same page with that category selected in search.

views/front/events/dashboard.html

index a326380..ee68da4 100644 (file)
@@ -9,7 +9,11 @@
     {foreach $catEvents as $catid => $category}
     <div class="small-12 medium-6 columns{if $category@last} end{/if}">
         <ul class="category-block pricing-table">
-            <li class="title">{$categories.{$catid}.name}</li>
+            <li class="title">
+                <a href="{$currentUrl}?search=1&category={$catid}">
+                {$categories.{$catid}.name}
+                </a>
+            </li>
             {foreach $category as $event}
                 {* Only output the first three so if it goes to 4 then break out of the loop *}
                 {if $event@iteration == 4}