luke.a.houghton Posted April 1, 2021 Share Posted April 1, 2021 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. webbroi, Beyondspace and EarvinChong 3 Link to comment
tuanphan Posted April 5, 2021 Share Posted April 5, 2021 Hi. Have you tried contacting Squarewebsites support yet? luke.a.houghton, webbroi and EarvinChong 2 1 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
luke.a.houghton Posted April 6, 2021 Author Share Posted April 6, 2021 Heya. Yes, I have sent an email to Squarewebsites, although I have not received a response yet. Link to comment
luke.a.houghton Posted April 8, 2021 Author Share Posted April 8, 2021 This has been solved. You can use the initState snippet to set an active option on page load. EarvinChong and tuanphan 2 Link to comment
deaton72 Posted May 27, 2021 Share Posted May 27, 2021 @luke.a.houghton I think this is exactly what I need to do. If I use initstate, will the filter on the page still be able to filter/show items that may not have the initstate filter? Do you happen to have the whole code? My script writing is not great and I keep "breaking" the unifilter when I add things. Thanks! EarvinChong 1 Link to comment
Geomogeogeo Posted February 17, 2022 Share Posted February 17, 2022 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? EarvinChong 1 Link to comment
Geomogeogeo Posted February 17, 2022 Share Posted February 17, 2022 Hi @luke.a.houghton I have the exact problem as you, I require default A-Z applied. Where can I find this initState snippet ? webbroi and EarvinChong 1 1 Link to comment
paul2009 Posted February 17, 2022 Share Posted February 17, 2022 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. EarvinChong and tuanphan 2 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
tuanphan Posted February 21, 2022 Share Posted February 21, 2022 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? 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? EarvinChong and webbroi 2 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
JesperZ Posted July 21 Share Posted July 21 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment