Hello,

I'm having difficulty understanding how this module works. I have a Commerce product entity that references a category taxonomy term. On a category taxonomy term page, I would like to list the referenced products and the products that are referenced by the terms children. In order to accomplish this, I'm overriding the taxonomy/term/% path with a Search API view. I added a category taxonomy term contextual filter of type "Taxonomy term ID from UL". Unfortunately, I can't find the depth select list that I thought this module would provide. Please see attached image. Is there something I'm doing wrong?

Thank you,
Paul

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

pnigro created an issue. See original summary.

andileco’s picture

Component: Documentation » Code
Assigned: Unassigned » andileco
Category: Support request » Task

Hi Paul, thanks for your question. The quick answer is: I have only created the filter (vs. contextual filter (aka "argument")) plugin, and actually had it on my to-do list to create the argument plugin for the next version: https://www.drupal.org/project/search_api_term_with_depth/releases/1.0.0.

I'm converting this from a documentation request to a task. I don't expect it will take especially long to add the argument plugin.

pnigro’s picture

Hello Daniel,

Thank you for your quick reply and for adding this to your todo list. It is a much needed feature. On a side note, I can't find the depth select list on a taxonomy term filter as well. I must be doing something wrong.

Thank you,
Paul

andileco’s picture

Status: Active » Needs review
StatusFileSize
new105.58 KB
new105.19 KB

Hi Paul, please apply the merge request to test. I've included images from where you can find the depth field on the filter and on the argument. Hope this helps!

andileco’s picture

Title: Need help with documentation » Add argument plugin for search_api_term_with_depth
andileco’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.