Solidus Taxon Group

Easily create and manage groups of taxons, irrespective of their parent or children taxons/taxonomies and control the position of taxons in their taxon groups. Useful if you need flexible taxon usage, for example a group of taxons for featured categories from different parent taxon/taxonomies.


Usage

<% navigation_taxon_group = Spree::TaxonGroup.find_by_key('navigation') %>
<% cache [I18n.locale, navigation_taxon_group] do %>
  <%= navigation_taxon_group.taxons.map do |taxon|
        '<li>' + link_to(taxon.name, seo_url(taxon)) + '</li>'
      end.join("\n").html_safe
  %>
<% end %>

Basic Installation

Add to your Gemfile:

gem 'solidus_taxon_group'

Run:

bundle && bundle exec rails g solidus_taxon_group:install

That's it!


Contributing

See corresponding guidelines and check out the issues.


Copyright (c) 2016 James Whelton and contributors, released under the New BSD License