🇺🇸United States @rex.barkdoll

Account created on 11 February 2012, over 12 years ago
#

Recent comments

🇺🇸United States rex.barkdoll

I'm adding to this for anyone else who runs into this problem. I was also experiencing a caching issue where my template changes would not update. It seems to be the fault of the browser's cache, not the website's cache. A forced refresh (CTRL+Shift+R) a few times finally cleared Chrome's browser cache enough to see the changes.

Seems like renaming the template file may also be an alternative solution - or just clearing your browser cache, but that sucks because you lose your login status.

Anyhoo, hope this helps.

🇺🇸United States rex.barkdoll

As a follow up to this, I created two empty files and added them in my theme so they wouldn't get overwritten/removed:

field--node--created.html.twig and field--node--uid.html.twig (which Drupal asked for after I created the first file).

After creating the 2 files, the page loads just fine. I'm pretty sure something isn't being rendered because of those missing TWIG files, but honestly the page looks like how the page did before those errors popped up.

🇺🇸United States rex.barkdoll

I agree, I just couldn't find where else in this module's codebase that the class was being added.
The other option is to stop using <details> elements and start using USWDS accordions instead

🇺🇸United States rex.barkdoll

Hi all,
I'm on Drupal 10, using USWDS theme and this module.
I've created a better working patch that removes the class. (attached)

Basically, it's updating the summary element in the details--bs.html.twig file
from this: {{ title }}
to this: {{ title }}

🇺🇸United States rex.barkdoll

Hi all,
I've been trying to implement this and nothing is working.

I've created my own module, but nothing in #8 is doing anything (assuming I put the code in the .module file).

I've also tried the patches and they don't apply. I'm trying to apply them to drupal/media, so let me know if that's incorrect.
Thanks for any insight or help you can provide.

🇺🇸United States rex.barkdoll

We're on D10 and are getting this error too. It's crashed the site.

In order to temporarily fix the problem, I had to go into PHPmyadmin, add a table to my database named 'background_image' with an INT column named 'bid'

At that point, I could use Drush to uninstall the module and my website went back to being functional.

🇺🇸United States rex.barkdoll

No, I think this is a distinct issue. My problem is different from the other ticket because it deals with the hidden attribute on the accordion content, not the aria attribute on the button. I'm also not editing the source code, I'm trying to check the Start collapsed checkbox and have it work properly out of the box.

I think I found a solution to my problem while messing around:

In templates/embedded-content/accordion.html.twig
Update line 26 to the following:
<div id="{{ key }}" class="usa-accordion__content usa-prose" {% if startcollapsed == 1 %}hidden{% else %}{% endif %}>

🇺🇸United States rex.barkdoll

Happy to, thank you for confirming my thought process and providing possible solutions :)

This is the ticket I created on their issue queue: https://www.drupal.org/project/simplesamlphp_auth/issues/3424467 Raise SimpleSAML Role update priority in hook to work better with ECA Active

🇺🇸United States rex.barkdoll

rex.barkdoll changed the visibility of the branch 3168966_cke-inline-media-10.1.x to hidden.

🇺🇸United States rex.barkdoll

rex.barkdoll changed the visibility of the branch 3168966_cke-inline-media-10.1.x to active.

🇺🇸United States rex.barkdoll

rex.barkdoll changed the visibility of the branch 3168966_cke-inline-media-10.1.x to active.

🇺🇸United States rex.barkdoll

Upgrading to the current dev version fixed my issue and seems to be working well.

🇺🇸United States rex.barkdoll

I'm adding in as well. I'm getting a 403 Ajax error whenever trying to unsubscribe.

🇺🇸United States rex.barkdoll

Hi all,
I was able to install into D10 using patch #29. It seems to be working well.

The only issue I'm getting is on the Restrict login by IP > User Restrictions page
(/admin/config/people/restrict_by_ip/login/user)

Warning: foreach() argument must be of type array|object, null given in Drupal\restrict_by_ip\Form\UserSettingsForm->buildForm() (line 70 of modules/custom/restrict_by_ip/src/Form/UserSettingsForm.php).
Drupal\restrict_by_ip\Form\UserSettingsForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('restrict_by_ip_user_settings', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 181)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 32)
Drupal\big_pipe\StackMiddleware\ContentLength->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 50)
Drupal\ban\BanMiddleware->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 704)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Is there a change I can implement to fix this?

🇺🇸United States rex.barkdoll

I finally had more time to dig into this. It turns out that this was a MimeMail issue instead of a Webform issue. It looks like the only part Webform could have played was in creating an email that was longer than some MimeMail limit and then MimeMail would encode the email automatically, even if it wasn't set as the formatter or sender in the Mail System settings.

I fixed the issue by disabling MimeMail and Installing the Symfony Mailer module . This HTML formats emails out of the box and doesn't seem to have the same encoding issue.

I'm still not really sure what MimeMail's issue was, I assume there was something they implemented at some point that caused the issue, but at least it's not Webform's fault.

Thank you again Liam for your suggestion.

🇺🇸United States rex.barkdoll

Adding my View's YML file if you'd rather just import it.

🇺🇸United States rex.barkdoll

I want to update this view setup for Drupal 8/9/10+

Create a view with a unformatted list of fields of any content (or book content if only book entities can be in books).
Limit the view to 1 result.

In your View, add a Relationship: Top level book. This shows as Book once the relationship has been added to the view. I don't think you have to Require this Relationship.

Add a contextual filter: ID - Content. (the ID under the category Content).
- Under relationship, choose Book.
- When the filter value is NOT available: Provide default value
- Type: Top Level Book from current node.

Make sure Pager is set to: Display a specified number of items: 1

Fields: Update your title field.
- set Relationship to: Book
- Check: Link to the content (if you want users to be able to click the link to return them to the Book "home" page)
- Style Settings:
- Check customize field HTML and set it to H1 (if this is how your HTML is structured for accessibility)
- uncheck Add Default Classes
- OPTIONALLY: Set the Label and Wrapper elements to none to reduce code.

Filter Criteria
- Add a Depth filter
- Require the Book relationship
- Set the value equal to 1

Set your block name

Save your view
Add it to your Block position
Style Appropriately.

🇺🇸United States rex.barkdoll

I'm on the 1.4 version of the module on D9, preparing for an upgrade to D10. I've applied the latest patch (#6) the previous ones wouldn't apply.

When I complete the TFA verification, the SAML request does not return me to the SP, it leaves me on the IDP's home page.

Is there a way to complete the SAML loop and return to the SP with the proper credentials?

I'm also noticing that after I've logged in, when I go to the SP again, it hasn't received the credentials and I have to click on the login link again to authenticate. Since I'm already logged in, it works - but it's a little annoying to go through that twice.

SOOOOO much appreciation for all the hard work that's gone into this module.

Also, if people aren't experiencing this same breakage in the 2.x version, I'm happy to upgrade to D10 and retest then.

🇺🇸United States rex.barkdoll

Any chance for getting these pushed into a released version?

🇺🇸United States rex.barkdoll

I just want to add my support of this request. We also have a site with 15K+ users and this is one check we can't perform due to system resource limitations. Batching the process or being able to filter by role would be amazing.

🇺🇸United States rex.barkdoll

I installed the Dev version in 10.1 and while it installs okay and gives me a class field on the Manage Form Display, I'm not seeing the classes put out when I'm editing an entity.

I don't have the skills to understand why it's not working, but I'm hoping this could give some assistance to getting a version for D10 up and running. Right now there's no way to format form modes and it's driving me nuts with all the scrolling.

🇺🇸United States rex.barkdoll

Hi, I'm prepping a site for D10 and ran into this issue trying to uninstall 9.1.0-alpha1 from the site.

Patch #5 from comment six on here did NOT work for me.

I do want to thank gshreeGS for their database modification suggestion in Issue:3094265 #20 🐛 Site crashes after uninstalling module Active . I unchecked the entity types on the menu token page and then removed that single entry from the menu tree table and the uninstall went fine.

I'm not sure if there's anything the developers can do to clean up the install process, that would be massively helpful. I remember this module being a pain in the past.

🇺🇸United States rex.barkdoll

Hi, I'm prepping a site for D10 and ran into this issue trying to uninstall 9.1.0-alpha1 from the site.

Patch #5 from comment six on https://www.drupal.org/project/menu_token/issues/3047794#comment-13213420 did NOT work for me.

I do want to thank gshreeGS for their database modification suggestion in #20 🐛 Site crashes after uninstalling module Active . I unchecked the entity types on the menu token page and then removed that single entry from the menu tree table and the uninstall went fine.

I'm not sure if there's anything the developers can do to clean up the install process, that would be massively helpful. I remember this module being a pain in the past.

🇺🇸United States rex.barkdoll

I'm verifying that #2 works. Thanks Josh for laying it out.

🇺🇸United States rex.barkdoll

RoSk0, you are an ABSOLUTE LEGEND! Thank you.

That has fixed everything and our SSO is working properly again. I appreciate your help :)

🇺🇸United States rex.barkdoll

Note: I have managed to create a workaround by pointing to the SimpleSamlPHP login page instead of the Drupal login page, but I still have no idea what the error means or why it started coming up. I'd also like to go back to using my Drupal login page because it's going to be a headache to make sure my theme is up to date on SimpleSaml.

🇺🇸United States rex.barkdoll

Adding a nudge and support for being added for accessibility reasons.

Off topic / separate question, but would there ever be the possibility for site administrators to control the list of allowed tags via a screen in the Configuration? Like a page with checkboxes that might default to a set (safe) list and include links to some sort of security vulnerabilities page for each HTML element about what the risks are?

Thank you everyone for your hard work on this! :)

🇺🇸United States rex.barkdoll

Sorry for the delay, I'm just getting back to this now.

The Dev version is working great! I'm seeing all the attributes. @gausarts, THANK YOU for your hard work on this :) You're a rockstar!

🇺🇸United States rex.barkdoll

Sure, happy to help.

The scenario is that our content editors like to put graphics inline with text, hand coding them in the CKEditor. In this case, we have an infographic that we want to use an image map on to allow people to click the section they want to explore via another webpage. We'd like to keep our page load times low by leveraging blazy for these images, but because it strips out all the existing attributes and replaces them with the TWIG contents, we lose out on some important data.

In this case, at a bare minimum, I need the USEMAP attribute to be carried over. I don't think the image and the map elements have to be siblings, but the image doesn't use the map and its links without the attribute in the img element. Note that I think USEMAP is kind of like an ID tag in the type of information it can hold.

In addition, we really should have the ALT attribute get picked up as well. I just noticed as I was grabbing code for you that it gets stripped because this is a hard-coded image and not one supplied from Drupal's media library. (accessibility should be a major concern for every website).

Ideally, I'd love every attribute in the source image be carried over. I can see the attributes at https://www.w3schools.com/tags/tag_img.asp each have their critical uses, but I can understand how it could be a headache to transfer everything and ensure it works with drupal's security filters.

This is the code as I need it to work:

<img class="width-full" width="900" height="1600" alt="The dosage probation roadmap, shows 4 phases described in a set of shapes" src="/images/dosage-probation-curved-infographic.jpg" usemap="#image_map">
<map name="image_map">
<area alt="Step 1" href="/phase-1-access-readiness/step-1-determine-if-legalstatutory-authority-permits" coords="158,224,314,317,315,377,156,469,109,346,0" shape="polygon">
<area alt="Step 2" href="/phase-1-access-readiness/step-2-assess-probation-departments-readiness-implement" coords="377,85,380,268,327,299,168,208,241,100,0" shape="polygon">
</map>

This is the code that ends up on the front-end when I have Blazy enabled in my text editor:

<div class="media-wrapper media-wrapper--blazy width-full">
    <div style="padding-bottom: 177.78%;" data-ratio="177.78" class="media media--blazy media--image media--ratio media--ratio--fluid is-b-loaded">
        <!-- THEME DEBUG -->
        <!-- THEME HOOK: 'image' -->
        <!-- BEGIN OUTPUT from 'core/modules/system/templates/image.html.twig' -->
        <img class="media__image media__element b-lazy b-loaded" decoding="async" loading="lazy" src="/images/dosage-probation-curved-infographic.jpg" width="270" height="480" alt="">
        <!-- END OUTPUT from 'core/modules/system/templates/image.html.twig' -->
    </div>
</div>
<!-- END OUTPUT from 'modules/contrib/blazy/templates/blazy.html.twig' -->
<map name="image_map">
<area alt="Step 1 - Determine if Legal/Statutory Authority Permits Early Termination" title="Step 1 - Determine if Legal/Statutory Authority Permits Early Termination" href="/phase-1-access-readiness/step-1-determine-if-legalstatutory-authority-permits" coords="158,224,314,317,315,377,156,469,109,346,0" shape="polygon">
<area alt="Step 2 - Assess Probation Department’s Readiness to Implement the Dosage Probation Model" title="Step 2 - Assess Probation Department’s Readiness to Implement the Dosage Probation Model" href="/phase-1-access-readiness/step-2-assess-probation-departments-readiness-implement" coords="377,85,380,268,327,299,168,208,241,100,0" shape="polygon">
</map>

Maybe could be a toggle in the Blazy settings where you can enable a feature to transfer all attribute values, but you're acknowledging the caveat that some values may change due to Drupal's filters and it's up to the website developers to create adaptations for their own site that pass the filter checks. This feature would have to be manually enabled and would act as a disclaimer.

Overall, I do want to say thank you for all the hard work that's gone into this module. It's really a life saver. I'm really impressed with its ease of use and smart implementation.

Let me know if you need any additional info or use cases.

🇺🇸United States rex.barkdoll

For anyone finding this thread, there's another one 💬 Confused - setup/configuration? readme? Active asking the same question for Version 8+.

It'll be of some help.

🇺🇸United States rex.barkdoll

Thank you everyone for this thread. I'm adding my voice to the request for instructions and a readme file to be included in the module.

I also noticed, for any novices out there that if you run into a PHP error, there are currently 2 modules ( entity_usage 🐛 Error: Call to private method in entity_usage_form_alter() Needs review and conditional_fields 🐛 Error while using with Structured Data module Needs review ) that have patches in order to be able to allow this module to work. It looks like it's not this module's fault, but I it was annoying figuring that out.
The error included Call to private method "Drupal\structured_data\Form\PageJsonForm"

The follow up question I have is, do we manually fill in the structured JSON data by hand for every page? I was hoping we could define some tokens and have the JSON be generated for each page, but it's looking like I have to go fill the JSON data in manually on every page. Is that correct or am I misunderstanding how this module works?

I'm concerned because I'm looking at 10,000+ pages and I can't imagine doing that by hand.

Also, I'm attaching a picture of the structured data json form so other people know what it looks like when they get there.

🇺🇸United States rex.barkdoll

Hey all, Thank you for all your hard work on this. Has anyone made progress on coming up with tests for this so that we can have a working patch to test? It's out of my skillset, but these duplicates are killing my sites as well.

🇺🇸United States rex.barkdoll

Yes, overwriting the contents of the file does fix it, but for some reason, when I ask Composer to grab the dev version, it doesn't include the updates to that file. Not sure what's going on but I had to manually overwrite it. I even renamed the danse folder and had it pull down a new copy of the repo and the updates weren't included in that, so I had to copy and paste the contents from the online interface.

The good news is that even after I asked composer to re-require the module again, it said there was nothing to modify or change with my updates in place, so at least it's not going to overwrite anything at the moment.

I'll consider the issue closed unless there's any other testing you want me to do.

and thank you again for figuring this out :)

🇺🇸United States rex.barkdoll

Also confirming that the error is gone on my end. Thank you for all your hard work on this. :)

🇺🇸United States rex.barkdoll

Sadly, I'm still getting the error.

Is there a place where I can try disabling the database caching you're talking about? I think I mostly have caching turned off at this point, so if there's something else I can change or test, I'm happy to give it a try.

The website encountered an unexpected error. Please try again later.

LogicException: The database connection is not serializable. This probably means you are serializing an object that has an indirect reference to the database connection. Adjust your code so that is not necessary. Alternatively, look at DependencySerializationTrait as a temporary solution. in Drupal\Core\Database\Connection->__sleep() (line 2042 of core/lib/Drupal/Core/Database/Connection.php).
serialize() (Line: 245)
Drupal\Core\Cache\DatabaseBackend->doSetMultiple() (Line: 193)
Drupal\Core\Cache\DatabaseBackend->setMultiple() (Line: 181)
Drupal\Core\Cache\DatabaseBackend->set() (Line: 256)
Drupal\danse_content\Plugin\Danse\Content->subscriptionOperations() (Line: 95)
Drupal\danse_content\Service->widget() (Line: 71)
danse_content_entity_view() (Line: 76)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler::Drupal\hook_event_dispatcher\{closure}() (Line: 405)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 91)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAllWith() (Line: 83)
Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler->invokeAll() (Line: 289)
Drupal\Core\Entity\EntityViewBuilder->buildMultiple() (Line: 239)
Drupal\Core\Entity\EntityViewBuilder->build()
call_user_func_array() (Line: 101)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 788)
Drupal\Core\Render\Renderer->doCallback() (Line: 374)
Drupal\Core\Render\Renderer->doRender() (Line: 204)
Drupal\Core\Render\Renderer->render() (Line: 242)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 243)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare() (Line: 132)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 142)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 174)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 81)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass() (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle() (Line: 57)
Drupal\advban\AdvbanMiddleware->handle() (Line: 50)
Drupal\ban\BanMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 23)
Stack\StackedHttpKernel->handle() (Line: 718)
Drupal\Core\DrupalKernel->handle() (Line: 19)
🇺🇸United States rex.barkdoll

Ignore what I said about the issue being gone. It's still there when I try to access nodes.

It seems like I can access nodes via a view, but accessing the forum topics via the forum page still presents the error. Is there anything I'm missing in a database setting or something?

🇺🇸United States rex.barkdoll

I'm also getting this when I try to update a content type or comment type. It even happens when I'm not making any DANSE-related changes, which is frustrating.

The good news is that even though the error occurs, changes do seem to be applied when you reload the page (by going to the URL bar and hitting return to force the page to that URL).

Unfortunately, I don't know enough about Drupal Caching to understand why the error is occurring or how to fix it.

🇺🇸United States rex.barkdoll

I just wanted to add support for anyone who might pick up this issue. It's an ongoing problem and is still relevant in the latest version of H5P. I wish I had the coding ability to try to figure this out, but I just don't. It needs a better coder than me.

Here are some links about the issue to catch anyone up on the latest goings-on for the issue:

The other H5P Drupal issue:
https://www.drupal.org/project/h5p/issues/2856947 📌 Not working with s3fs Module Active

H5P Thread on this issue:
https://h5p.org/node/1189#comment-48933

Here's the Jira ticket related to this issue:
https://h5ptechnology.atlassian.net/browse/HFP-801

🇺🇸United States rex.barkdoll

Could the maintainers update the version of this request for the 2.X version of the module? This is still a relevant issue and shouldn't be forgotten about as we move into the future.

Our situation is that we run a pretty lean server for our website and do our file storage on S3. We managed to max out our server storage by uploading some courses before we realized that this module doesn't follow the same guidelines as Drupal's file storage system. I'm having a hard time seeing how H5P can ever be scalable in its current state.

🇺🇸United States rex.barkdoll

Quick sanity check for you all, are there existing users on the site that already match the username/email/unique identifier of the account being provisioned?

I'm noticing this tends to happen when there's an existing user and the system can't understand that it needs to match the incoming user with the existing account.

I have one site where incoming users get matched properly and one site where they don't and this prefix thing happens. I thought checking "Automatically enable SAML authentication for existing users upon successful login" was supposed to fix this, but I'm not sure.

🇺🇸United States rex.barkdoll

Since this still hasn't been solved in Views/Core, I wanted to add that I was also able to solve this using the TVI module.

The only problem I can see is that you hit a wall if you want to have Taxonomies that span across nodes and products. You can't do both, so, in my limited understanding, you'll have to create a different Vocabulary for each side, even if that means you have duplicate terms in separate vocabularies. If someone knows better, please show me a way to show both nodes and products on a tag page.

I appreciated @chike's instructions, but they're a bit minimalist, so here's a more expanded version:

  1. Install the https://www.drupal.org/project/tvi module and enable it.
  2. Create a new view, you might name it something like "Products per Taxonomy Term"
    • Setup the view however you want show each product in a display mode or with fields - however you want it to display, set it up.
    • Add a no results behavior message that says: "this term doesn't have any products associated with it."
    • Under Advanced > Contextual Filters, add a filter for your Taxonomy Vocabulary (authors, tags, whatever) and when it's not available, set it to Display the contents of No results Found, or hide view.
    • Set the view pagination if needed.
  3. Save the view
  4. Now go to Structure > Taxonomies. Click the dropdown beside your vocabulary and click Edit Vocabulary.
  5. You'll notice a new section on this page called Taxonomy Views Integrator Settings
    • Check the Enable taxonomy views integrator to override presentation. checkbox
    • Find your view in the first dropdown and select it
    • Select the view you want from the second dropdown
    • Optionally check the two checkboxes about children and arguments if they make sense to you.
    • Save the Vocabulary
  6. Now go check out a vocabulary term page and your products should appear. They should show up based on your settings in the view we created.

Bonus Points:

  1. I wanted to setup a view that showed all the taxonomy terms in my vocabulary. Over the years, our vocabulary (Authors) list has grown, but not every term is still associated with an active product, so I wanted to create a view that shows taxonomy terms with at least one product associated with them.
  2. Create the view, set it to show your Vocabulary, in my case it's Authors.
  3. Get it setup and displaying how you want. (format, fields, filters, Block/page settings, header, footer, no results behavior, and pager.
  4. Advanced > Add a relationship to the product field that contains your vocabulary (in my case: field_authors), check the box to require this relationship
  5. Advanced > Turn on Aggregation and enable the Distinct option in Query Settings
  6. Add an additional filter: Product: Has taxonomy term. Choose your vocabulary and set the Operator to Is Not Empty (NOT NULL)
  7. Hit the apply button.
  8. Your new view should now only show terms that have at least 1 product associated with them.
Production build 0.69.0 2024