<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>How do we read the active filter/tag</title>
    <link>http://forums.shopify.com/categories/2/posts/20572</link>
    <language>en-us</language>
    <description>Feed for discussion topic How do we read the active filter/tag</description>
    <item>
      <title>How do we read the active filter/tag</title>
      <author>Caroline Schnapp</author>
      <pubDate>Fri, 04 Jul 2008 23:00:42 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20572</link>
      <guid>http://forums.shopify.com/categories/2/posts/20572</guid>
      <description>&lt;p&gt;I am trying to read the &lt;span class="caps"&gt;URL&lt;/span&gt; from within collection.liquid. The &lt;span class="caps"&gt;URL&lt;/span&gt; contains a tag filter.&lt;/p&gt;


	&lt;p&gt;Let me give you an example of such &lt;span class="caps"&gt;URL&lt;/span&gt;:&lt;/p&gt;


	&lt;p&gt;&lt;a href="http://shop.myshopify.com/collections/playback-graphics/compilation"&gt;http://shop.myshopify.com/collections/playback-graphics/compilation&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;From within collection.liquid, I must determine if the last argument in the &lt;span class="caps"&gt;URL&lt;/span&gt; is &#8216;compilation&#8217; as the markup will be very different on that page in that&#8217;s the case. &#8216;compilation&#8217; is a tag, it is the tag used to filter the collection.&lt;/p&gt;


	&lt;p&gt;The following Output will output this: &lt;code&gt;/collections/playback-graphics&lt;/code&gt;:&lt;/p&gt;


	&lt;p&gt;{{ collection.url }}&lt;/p&gt;


	&lt;p&gt;I am able to print all tags used by products within the collection, and using the filter &lt;code&gt;highlight_active_tag&lt;/code&gt; the &lt;em&gt;active&lt;/em&gt; tag will get printed with a special class-ed span next to it.&lt;/p&gt;


&lt;code&gt;&lt;pre&gt;
{% for tag in tags %} {{ tag | highlight_active_tag }} {% endfor %}
&lt;/pre&gt;&lt;/code&gt;

	&lt;p&gt;But how do I read the active tag? How do I get a handle to it?&lt;/p&gt;</description>
    </item>
    <item>
      <title>Caroline Schnapp commented</title>
      <author>Caroline Schnapp</author>
      <pubDate>Sat, 05 Jul 2008 21:14:59 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20572#comment-20599</link>
      <guid>http://forums.shopify.com/categories/2/posts/20572#comment-20599</guid>
      <description>&lt;p&gt;Miss Manners, &lt;strong&gt;Christina&lt;/strong&gt;, gave me the solution here: &lt;a href="http://forums.shopify.com/categories/2/posts/20554#comment-20598"&gt;http://forums.shopify.com/categories/2/posts/20554#comment-20598&lt;/a&gt;&lt;/p&gt;


	&lt;p&gt;current_tags is an undocumented variable. Thank you, Christina!&lt;/p&gt;


	&lt;p&gt;Christina here: &lt;a href="http://forums.shopify.com/users/show/205"&gt;http://forums.shopify.com/users/show/205&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Christina commented</title>
      <author>Christina</author>
      <pubDate>Sat, 05 Jul 2008 21:59:25 +0000</pubDate>
      <link>http://forums.shopify.com/categories/2/posts/20572#comment-20603</link>
      <guid>http://forums.shopify.com/categories/2/posts/20572#comment-20603</guid>
      <description>&lt;p&gt;however, i am now a documented variable, it would seem :)&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
