If I soft limit number of items in a facet, normally it displays a link to expand the items. But when I enable "Aggregate JavaScript files. " from the performance settings of Drupal, this functionality disappears. It shows all the items. No show more link.

CommentFileSizeAuthor
#1 1884282-1.png69.61 KBcpliakas

Comments

cpliakas’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Status: Active » Postponed (maintainer needs more info)
StatusFileSize
new69.61 KB

Hi Sinan Erdem.

Thanks for posting. Unfortunately I am unable to replicate the issue. See the attached screenshot which shows the "Show more" links with aggregated JavaScript files. In order to move forward I need some steps to reproduce.

As a side note, this could occur because of issues with any contributed module, custom module, or theme scripts that don't behave well with aggregated JS. Sometimes it helps to disable things in groups at a time to see where the offending code is.

Thanks,
Chris

Sinan Erdem’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Hello Chris,

Thanks for the answer. After some time, I also noticed some othe JS issues on some other parts of the website. So I dont think it is only related to Facet API. I didnt find the cause yet though.

cpliakas’s picture

Thanks for posting back. Please feel free to re-open if you do discover that the issue is in Facet API, and we can work through it.

Thanks, and good luck debugging.
Chris

storytellerjeff’s picture

I'm also experiencing this same behavior with my facets - but not noticing other JS issues.

When I clear my cache, the "show more" and check boxes appear, when the page reloads (and the cache is rebuilt), they disappear.

@Sinan - did you find a cause?

cpliakas’s picture

@storytellerjeff Do you have block caching enabled? Sounds like it could possibly be related to #1621034: Checkboxes don't show in facets for anonymous users when block cache is enabled..

storytellerjeff’s picture

@cpliakas - I did have block caching enabled - thanks! I'll give that patch a try and report back if it's the problem is still there.

storytellerjeff’s picture

So, we've narrowed down the problem, as when block caching is turned on the problem is there, but with it disabled, the facets work normally.

The problem is, the patch at #1621034: Checkboxes don't show in facets for anonymous users when block cache is enabled.. was already implemented April 1 and isn't correcting the problem.

The 7.x-1.3 version has the patch installed, but the "show more" and checkboxes are not showing when Cache Blocks is enabled. Is there a work around for this?