Jump to content

Tweaking the Squarewebsite Universal Filter - active filter on page load

Recommended Posts

name: "Design", 
allowedOptions: "Slender, Weighty, Classic, Premium",
hideValueLabel: true,
capitalcase: true,
multiple: true,
sort: 'asAllowed',
getAttr: 'tags'

Hello everyone,

I am using the awesome Universal Filter provided by Squarewebsites and it works fantastically.

However, I just need to make a slight tweak.

Is there a way to have one of the options already active on a page load?

Just as an example, is it possible to have the 'Slender tag' already selected with the summary block already displaying the results.

Link to comment
  • 1 month later...
  • 8 months later...
5 hours ago, Geomogeogeo said:

Universal Filter Plugin: I require default A-Z applied.

This is described in the documentation that Squarewebsites supply with their plugin. If you need additional help, I recommend you reach out to the developer.

About: SQSP User for 17 yrs. Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥.
Work: Founder of SF Digital, building Squarespace Extensions to supercharge your commerce website. 
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
If my advice helped, you can thank me by clicking one of the feedback emojis below. I love coffee too.

Link to comment
On 2/17/2022 at 9:22 AM, Geomogeogeo said:

Hi,

I have purchased the Universal Filter plugin.

Is there a way to have the default page by A-Z even before I start sorting?

 

 

image.thumb.png.34913c976bce9f1dc95ce132f0cb4d50.png

 

On 2/17/2022 at 9:31 AM, Geomogeogeo said:

Hi @luke.a.houghton

I have the exact problem as you, I require default A-Z applied.

Where can I find this initState snippet ?

Have you found the solution yet?

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 year later...

To set the plugin up for default Alphabetical sorting, you need to add the following line directly after "Settings -> position.

 


initState:{sort:['Alphabetical|asc']}, // Define what options need to be enabled on filter start

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.