iBright Web Design Studio - Taxonomy http://ibright.org/ tags/taxonomy en HOW TO CREATE TAXONOMY TERM COUNT BLOCK USING VIEWS AGGREGATION? http://ibright.org/ how-create-taxonomy-term-count-block-using-views-aggregation <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><div class="video-container"> <iframe allowfullscreen="" frameborder="0" height="315" src="//www.youtube.com/embed/w22Utjm-chs?rel=0" width="560"></iframe></div> </div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/tags/drupal7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Drupal7</a></div><div class="field-item odd" rel="dc:subject"><a href="/tags/views" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Views</a></div><div class="field-item even" rel="dc:subject"><a href="/tags/ctools" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">ctools</a></div><div class="field-item odd" rel="dc:subject"><a href="/tags/aggregation" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Aggregation</a></div><div class="field-item even" rel="dc:subject"><a href="/tags/taxonomy" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Taxonomy</a></div><div class="field-item odd" rel="dc:subject"><a href="/tags/tag-count" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Tag Count</a></div></div></div><div class="easy_social_box clearfix vertical easy_social_lang_en"> <div class="easy_social-widget easy_social-widget-twitter first"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://ibright.org/ how-create-taxonomy-term-count-block-using-views-aggregation" data-count="vertical" data-lang = "en" data-via="" data-related=":Check it out!" data-text="HOW TO CREATE TAXONOMY TERM COUNT BLOCK USING VIEWS AGGREGATION?">Tweet</a></div> <div class="easy_social-widget easy_social-widget-facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A//ibright.org/ how-create-taxonomy-term-count-block-using-views-aggregation&amp;send=false&amp;layout=box_count&amp;width=48&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=&amp;height=90&amp;appId=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:48px; height:90px;" allowTransparency="true"></iframe></div> <div class="easy_social-widget easy_social-widget-googleplus"><div class="g-plusone" data-size="tall" data-annotation="bubble" data-href="http://ibright.org/ how-create-taxonomy-term-count-block-using-views-aggregation"></div></div> <div class="easy_social-widget easy_social-widget-linkedin last"><script type="in/share" data-url="http://ibright.org/ how-create-taxonomy-term-count-block-using-views-aggregation" data-counter="top"></script></div> </div> <!-- /.easy_social_box --> Fri, 18 Jan 2013 06:17:33 +0000 ciril 20 at http://ibright.org/s__www HOW TO USE VIEWS AGGREGATOR TO CREATE TAXONOMY TERM COUNT BLOCK? http://ibright.org/ how-to-use-views-aggregator-to-create-taxonomy-term-count-block <div class="field field-name-field-image field-type-image field-label-hidden"><div class="field-items"><div class="field-item even" rel="og:image rdfs:seeAlso" resource="http://ibright.org/ sites/default/files/field/image/4.png"><a href="http://ibright.org/ sites/default/files/field/image/4.png" title="VIEWS AGGREGATOR" class="colorbox" rel="gallery-node-19-XygZN8OjXzw"><img typeof="foaf:Image" src="http://ibright.org/ sites/default/files/styles/large/public/field/image/4.png?itok=Y_BWzC3D" width="308" height="237" alt="VIEWS AGGREGATOR" title="" /></a></div></div></div><div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Today I am going to show you how to create a taxonomy term count block using views in drupal7. You don't need to have any aditional modules for this other than views and ctools. I write this post becasue I found many people are asking how to setup this and is there any module available? (<a href="http://drupal.org/node/603868#comment-4421144">http://drupal.org/node/603868#comment-4421144</a>) And the answer is simple and just follow the below steps.</p> <h2> Required Modules</h2> <ol><li> <a href="http://drupal.org/project/views" target="_blank">Views3</a></li> <li> <a href="http://drupal.org/project/ctools" target="_blank">ctools</a></li> </ol><h2> Modules Installation</h2> <p>Download all the modules and install in the directory <strong>yoursitename/sites/all/modules</strong>. Next go to admin/modules and enable the Chaos tools, Views &amp; Views UI modules.</p> <h2> Create your Content &amp; Taxonomy Term</h2> <p>Create a vocabulary and add the vocabulary term field to any of your content type such as blog, artice etc.</p> <h2> Create View &amp; Block</h2> <p>Go to /admin/structure/views and create a new Taxonomy term view. (<strong>Note:</strong> Make sure you don't create page or block view from beginning.)</p> <p><a class="colorbox-inline" href="/sites/default/files/images/1.png"><img alt="Taxonomy Term View" src="/sites/default/files/images/1.png" style="width: 690px; height: 282px;" /></a></p> <h3> Views Other</h3> <p>Enbale Views <strong>aggregation to Yes</strong></p> <h3> Views Field</h3> <p>Add taxonomy term field and set aggregation as <strong>Gorup results together</strong> next add one more taxonomy term field and this time set the aggregation as <strong>Count</strong> (Note: You can also set prefix "(" and suffix")" for taxonomy term count field. So that it will be looking like this ⇒ <strong><span style="color:#ffa500;">Drupal</span> (6)</strong></p> <h3> Views Field Formatting</h3> <p>Under the views field settigs check the fields you want to show as inline. So that taxonomy term and the count field will be displayed as inline.</p> <p><a class="colorbox-inline" href="/sites/default/files/images/3.png"><img alt="Field Row Style -Inline" src="/sites/default/files/images/3.png" style="width: 690px; height: 388px;" /></a></p> <h3> View Pager</h3> <p>Set the pager to Display specified items and add the number of terms ou want to show (I set it as 5 terms)</p> <h3> Views Sorting</h3> <p>Next let's sort the list of the term by most used. So add a <strong>Taxonomy term name</strong> sort field and sort it as <strong>descending</strong> now set the Aggrergation as <strong>count</strong> now you see the top 5 most used taxonomy term in the preview area.</p> <h3> Create Block View</h3> <p>Now just add a new block view and go to /admin/structure/block and enable the block we just creted using views!</p> <p><strong>See the views setings screen shot for refernce.</strong></p> <p><a class="colorbox-inline" href="/sites/default/files/images/2.png"><img alt="Taxonomy Count Block - Views Aggregation settings" src="/sites/default/files/images/2.png" style="width: 690px; height: 537px;" /></a></p> <p>That is the end of this tutorial. Please feel free to ask me if you have any quesetions, doubts or having any difficult to setup.</p> </div></div></div><div class="field field-name-field-tags field-type-taxonomy-term-reference field-label-above"><div class="field-label">Tags:&nbsp;</div><div class="field-items"><div class="field-item even" rel="dc:subject"><a href="/tags/views" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Views</a></div><div class="field-item odd" rel="dc:subject"><a href="/tags/taxonomy" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Taxonomy</a></div><div class="field-item even" rel="dc:subject"><a href="/tags/aggregator" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Aggregator</a></div><div class="field-item odd" rel="dc:subject"><a href="/tags/drupal7" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Drupal7</a></div><div class="field-item even" rel="dc:subject"><a href="/tags/count" typeof="skos:Concept" property="rdfs:label skos:prefLabel" datatype="">Count</a></div></div></div><div class="easy_social_box clearfix vertical easy_social_lang_en"> <div class="easy_social-widget easy_social-widget-twitter first"><a href="http://twitter.com/share" class="twitter-share-button" data-url="http://ibright.org/ how-to-use-views-aggregator-to-create-taxonomy-term-count-block" data-count="vertical" data-lang = "en" data-via="" data-related=":Check it out!" data-text="HOW TO USE VIEWS AGGREGATOR TO CREATE TAXONOMY TERM COUNT BLOCK?">Tweet</a></div> <div class="easy_social-widget easy_social-widget-facebook"><iframe src="//www.facebook.com/plugins/like.php?locale=en_US&amp;href=http%3A//ibright.org/ how-to-use-views-aggregator-to-create-taxonomy-term-count-block&amp;send=false&amp;layout=box_count&amp;width=48&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font=&amp;height=90&amp;appId=" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:48px; height:90px;" allowTransparency="true"></iframe></div> <div class="easy_social-widget easy_social-widget-googleplus"><div class="g-plusone" data-size="tall" data-annotation="bubble" data-href="http://ibright.org/ how-to-use-views-aggregator-to-create-taxonomy-term-count-block"></div></div> <div class="easy_social-widget easy_social-widget-linkedin last"><script type="in/share" data-url="http://ibright.org/ how-to-use-views-aggregator-to-create-taxonomy-term-count-block" data-counter="top"></script></div> </div> <!-- /.easy_social_box --> Fri, 04 Jan 2013 08:13:21 +0000 ciril 19 at http://ibright.org/s__www