drupal 7

Create a view that filter according to taxonomy term

Create a view that filter according to taxonomy term

  1. Create your desired view.
  2. Add Contextual filters for your term field.
  3. Add a path.

Link your view to a vocabulary.

  1. Install (Taxonomy display)[https://www.drupal.org/project/taxonomy_display].
  2. Read https://www.drupal.org/node/1254878.

Remove "Read more" link

Tag(s):

  1. Copy < drupal_root >\themes\bartik\templates\node.tpl.php to < your_theme >\templates\node.tpl.php.
  2. Open < your_theme >\templates\node.tpl.php.
  3. Remove the following code.

Long URL get truncated by 3 dots

Tag(s):

By default, long URL get truncated by 3 dots. To change this, do the following:

  1. At admin/config/content/formats/, click on the configure link of the filter you use.
  2. Under the Filter settings section, leave blank on the Maximum link text length input field.

template.php is not executed

Here are issues why template.php are not executed:

  • Your Administration theme is different than the default theme and you logged in as administrator.

Views with taxonomy term count

In order to create a view with taxonomy terms count, do the following:

Get the path of the current active theme folder

To automatically determine the path of the current active theme folder, use the following code:

Show field information before "Read more" link

Tag(s):

The content before the Read more link that you see on your front page is called a teaser. Do the followings to show more field information in the teaser:

  1. Go to admin/structure/types, click on the manage display link of your content type.
  2. Click on Teaser link.
  3. By default, all your content field are hidden. Unhide the ones you wish.

Warning: ignoring param 'title' for book as it is not valid. Possible values are ''.

Symptom:

You are getting the following warning message:

ignoring param 'title' for book as it is not valid. Possible values are ''.

It means that the title param is not set for your content type(e.g. book).

Group by date with Views in Drupal 7

Let's assume that you want to group all your nodes by month. Do the followings:

Subscribe to RSS - drupal 7