Jump to content
clizlee

Customize layout based on if faceted search or not

Recommended Posts

Right now for all of our category pages I'm using 2 column layout, small left column and larger right column. The left column shows the Filters (faceted search). The only problem is, some categories just have no filters because those filters just don't apply to that category. So I'm wondering, is there a way to make a conditional if/then statement somewhere to say basically, if faceted search, show 2 column layout, else show full width. Does anyone know if that's possible and if so which .tpl page would I add the code into?

Share this post


Link to post
Share on other sites

Are you using a custom template? As far as I know the left column should be hidden when no module hooks to it, in the default template

Share this post


Link to post
Share on other sites

I'm using child theme of the classic theme, but I do have the faceted search module hooked, but I need it hooked so that when there are available filters it shows up. But the problem is, if there are no filters, then the filters don't appear, leaving the left column empty so it looks funny in some categories. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More