27

Related content in Drupal 8

We will need to use 2 contextual filters. Id and Has taxonomy term id.

Configure Id filter as following:

  • Provide default value: Content ID from URL
  • Under More tab - Check next to Exclude

Configure Has taxonomy term id as following:

  • Provide default value: Taxonomy term ID from URL
  • Uncheck: Load default filter from term page
  • Check next to: Load default filter from node page, that's good for related taxonomy block
  • Multiple value handling: Filter to items that share any value
  • Check next to Reduce Duplicates
  • Under more tab check: Allow multiple values and Allow multiple values to work together.

Ограниченный HTML

  • Допустимые HTML-теги: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Строки и абзацы переносятся автоматически.
  • Адреса веб-страниц и email-адреса преобразовываются в ссылки автоматически.
CAPTCHA