Skip to main content
Drupalista.sk

Main navigation

  • Home
User account menu
  • Kontakt

Breadcrumb

  1. Home

filter

By drupalista, 11 March, 2024

Quick idea: How to filter view result by content entity ID?

Imagine this scenario: We have a view of certain content type nodes. This content type has field of type taxonomy term reference and we want to filter the view by taxonomy term ID. It means, we only want to display content assigned to particular taxonomy term. Easy, right? Obviously, you'd create this view on your local or development environment. Then you push the configuration on production and what??? The filter does not work! Why? Because the ID of the taxonomy term may be defferent on production website.

Tags

  • views
  • taxonomy
  • field
  • filter
filter

Language switcher

  • English
  • Slovak

Recent content

  • Quick idea: How to filter view result by content entity ID?
    2 years ago
  • How to add a new token for existing module?
    2 years ago
  • Drupal Migrate API: How to migrate images
    2 years 5 months ago
RSS feed
Powered by Drupal