3

Check out "Dynamic Content" in the "Advanced Usage" section of the Blitz docs: https://putyourlightson.com/plugins/blitz#dynamic-content Thus can be done with: {{ craft.blitz.getTemplate('/template/name', { elementId: entry.id }) }}


1

Duplicate of https://github.com/putyourlightson/craft-sprig/issues/118 The code is correct and what you are experiencing is likely due to local browser caching.


1

The CSRF token is likely expiring. Since pages are cached with Blitz, you must use some strategy to ensure that a fresh CSRF token is loaded into the page on each page that is statically served. The simplest way to do this is to use the Dynamic Content feature in Blitz, specifically craft.blitz.csrfInput(). <form method="post"> {{ craft....


1

Have a look at the settings of your asset's volume: Go to: Settings > Assets > [Your Volume Name here] Check the field "Base URL". If it starts with the alias @web, remove it. E.g. "@web/images" -> "/images". Now check the URL of your image again.


1

It looks like your approach is working rather well, so I'll assume you are simply asking for an alternative approach. To make 1 AJAX request rather than the 80 or so that the page is currently making, I would use Blitz's dynamic content feature to load all of the products in one single template. In that template you can check whether the user is logged in, ...


1

Your code looks correct. Test with the following code in brands/_followButton. {{ currentUser ? 'Logged in' : 'Logged out' }} For some reason, it's not working and I can't figure out why. Can you explain what specifically is not working? And provide the version of Blitz that you're using?


Only top voted, non community-wiki answers of a minimum length are eligible