Jump to content

initState questioin

Recommended Posts

Site URL: https://corn-apricot-zn88.squarespace.com/

I am using an initState filter in a script to give a blog block an initial view - using the universal filter. Does anyone know if I can do this for the blog itself and not through the filter.... I don't know anything about initstate. BUT, when I have it enabled for the blog summary, then whenever you back page from a filtered item it shows the init view again. 

 

Hoping there's a workaround! 

Link to comment
  • 2 weeks later...
On 9/17/2021 at 1:25 AM, deaton72 said:

Site URL: https://corn-apricot-zn88.squarespace.com/

I am using an initState filter in a script to give a blog block an initial view - using the universal filter. Does anyone know if I can do this for the blog itself and not through the filter.... I don't know anything about initstate. BUT, when I have it enabled for the blog summary, then whenever you back page from a filtered item it shows the init view again. 

 

Hoping there's a workaround! 

Have you contact author of the plugin yet

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment
  • 8 months later...
On 9/17/2021 at 2:25 AM, deaton72 said:

Site URL: https://corn-apricot-zn88.squarespace.com/

I am using an initState filter in a script to give a blog block an initial view - using the universal filter. Does anyone know if I can do this for the blog itself and not through the filter.... I don't know anything about initstate. BUT, when I have it enabled for the blog summary, then whenever you back page from a filtered item it shows the init view again. 

 

Hoping there's a workaround! 

The initState function seems to only work on the Universal Filter and not on the blog itself. Like you said it works to give the filters an initial value when the page is loaded.

 🔲 Squarewebsites Plugins: Solutions for duplicating websites, custom filters, custom tables, custom maps and more.

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.