Views

Scenario: You have a Views page or block that needs to display contents which are grouped or categorized/classified by a taxonomy term. In my case I have a list of contents (content type sponsors) that needs to be grouped and displayed in this order: Major Sponsors, Partners, Sponsors. For example in above screenshot.

In some instances, you may want to restrict your views page (in this case to permit only selected roles to view contents categorized in certain taxonomy terms). You also, however, will want some text available and viewable publicly on the same Views URL or page. To do this, you may follow these simple steps.

There are a lot of grid modules for Views in Drupal 7. Below are some of the views grid modules for Drupal 7 that works well out of the box, at with some configurations as required. Listed are some some challenges and best features for the following grid modules:

Use case: 

TVI to use customized View display generated from the Taxonomy term (Content) template

Issues: 

Off the box from the template Taxonomy term (Content), without additional contextual filters and relationships, the View does not seem to output or work properly when using any of the following:

BX Slideshow
FlexSlider
Grid
Jump menu
Slideshow
Superhero Portfolio
Table

In Drupal 7, the challenge in display custom views when working with Drupal Commerce is that the Commerce fields by default are programatically separated and distinct from content fields and entities of your usual Drupal content types - including for instance the Product Display content type. In this example, we have a Content Type > Product Display, with referenced Commerce Product fields. Needless to say each has its own set of fields, normally the Commerce fields are rendered inside your Product Display, as the common and preferred setup for D7.

Option 1: Field Slideshow and Field Collection modules

Provides a Slideshow formatter for Image fields, using JQuery Cycle plugin.Compared to Views slideshows, building the slideshow from multiple nodes, this module builds it from a single node, with a multi-valued Image/Media/Field Collection field.

https://www.drupal.org/project/field_slideshow

Here is a list of those oftentimes necessary table modules for Drupal that works for views (list to date).

Simple Responsive Table

https://www.drupal.org/project/simple_responsive_table

Foo Table

https://www.drupal.org/project/footable

Zurb Responsive Tables

https://www.drupal.org/project/zurb_responsive_tables

Responsive Tables

You may consider using PHP for this.

  1. Go to your Views
  2. Header > Add
  3. Select Global: PHP
  4. Use PHP snippet below to display the current term description
  5. You may use additional fields as necessary, arguments, arrays, etc.
<?php $current = taxonomy_term_load(arg(2)); ?>
<?php if ($current): ?>
    <div class="taxonomy-description">
        <?php echo $current->description; ?>
    </div>
<?php endif; ?>

Views can do this. Views is a UI for sql searches so you are setting the definition for the query that will be made of the content database.

  1. Create a view to display a taxonomy term with a page with a path configured along this line category/%. The % is a wildcard that will make the view respond to any value applied in the URL that matches this format.

  2. Set up your display and any filters desired.

Pages