snipt

Ctrl+h for KB shortcuts

Text only

Drupal 7 : List (View) of content types group by Taxonomy

1
2
3
4
5
6
7
In your view, click add in the "FIELDS" section. 
There, you can search for "Taxonomy terms" and "title" and add them both.
Uncheck "Create a label"
Check "Exclude from display" if you don't want to see on those fields (taxonomy terms for example)
Also, you can "Limit terms by vocabulary" and choose a specific taxonomy

You can now click on FORMAT / Format / Settings and set "Grouping field Nr.1" to "Taxonomy terms"
https://snipt.net/embed/82582202880575d55711a02aa9912789/
/raw/82582202880575d55711a02aa9912789/
82582202880575d55711a02aa9912789
text
Text only
7
2016-12-29T02:11:11
True
False
True
Jan 28, 2013 at 12:56 PM
/api/public/snipt/54653/
drupal-7-list-view-of-content-types-group-by-taxonomy
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>In your view, click add in the &quot;FIELDS&quot; section. </span><span id="L-2"><a name="L-2"></a>There, you can search for &quot;Taxonomy terms&quot; and &quot;title&quot; and add them both. </span><span id="L-3"><a name="L-3"></a>Uncheck &quot;Create a label&quot; </span><span id="L-4"><a name="L-4"></a>Check &quot;Exclude from display&quot; if you don&#39;t want to see on those fields (taxonomy terms for example) </span><span id="L-5"><a name="L-5"></a>Also, you can &quot;Limit terms by vocabulary&quot; and choose a specific taxonomy </span><span id="L-6"><a name="L-6"></a> </span><span id="L-7"><a name="L-7"></a>You can now click on FORMAT / Format / Settings and set &quot;Grouping field Nr.1&quot; to &quot;Taxonomy terms&quot; </span></pre></div> </td></tr></table>
"drupal 7", "group by", taxonomy, view