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. EarvinChong, Earvin, Beyondspace and 1 other 4 Link to comment
tuanphan Posted April 5, 2021 Share Posted April 5, 2021 Hi. Have you tried contacting Squarewebsites support yet? webbroi, luke.a.houghton, Earvin and 1 other 3 1 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) 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. Earvin, tuanphan and EarvinChong 3 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? Earvin and EarvinChong 2 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 ? Earvin, webbroi and EarvinChong 2 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. Earvin, tuanphan and EarvinChong 3 Me: I'm Paul, a SQSP user for >18 yrs & Circle Leader since 2017. I value honesty, transparency, diversity and good design ♥. Work: Founder of SF.DIGITAL. We provide high quality original extensions to supercharge your Squarespace website. Content: Views and opinions are my own. Links in my posts may refer to my own SF.DIGITAL products or may be affiliate links. Forum advice is completely free. You can thank me by selecting a feedback emoji. Buying a coffee is generous but optional. Would you like your customers to be able to mark their favourite products in your Squarespace store? 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, Earvin and webbroi 3 Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
JesperZ Posted July 21, 2023 Share Posted July 21, 2023 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 Earvin 1 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