Questions tagged [plugin-sprig]
Questions about the Sprig plugin.
37 questions
0
votes
0
answers
31
views
Craft CMS + Sprig: lazy-load tab panels on click (content not swapping and outer markup duplicates)
Goal
I have a Craft CMS tab layout (tabs handled by some JS). Each tab’s content is heavy (lots of queries). I want to use Sprig so that:
the first tab loads on page load,
other tabs load on first ...
0
votes
1
answer
89
views
How do I make a link clear a sprig variable and trigger a reload?
I'm using Sprig to filter a set of results. The filter values are shown as 'chips' which - when clicked on - remove that filter selection.
I know I can re-render the component with a simple sprig ...
0
votes
1
answer
123
views
Load more - responsive layout
I need to create a responsive section, that has a load more button.
I want the page to show one (small screens), two (medium) or three (large) entries per row.
Also, on clicking 'load more' one, two ...
1
vote
2
answers
157
views
How to use Sprig to filter by related entries using a dropdown
I have a Sprig board listing architect's projects, built in Craft 5. This is working pretty well with a search, date ordering of entries etc.
But — I am having trouble with a dropdown that I'd like to ...
1
vote
1
answer
78
views
Does a sortable Sprig 'board' need to use a table structure for full functionality?
I am experimenting with a sortable 'board' of project entries, based on the excellent Sprigboard videos by @ben-croker.
It seems to be working so far with a flex-based structure ( I can sort flex rows ...
1
vote
1
answer
151
views
Local Storage with Sprig
I have a changing sort dropdown using Sprig, works great. Though, I'd like to save this sort order to local storage and pass it as the default to my sprig component.
What's the best way to do this? Is ...
1
vote
2
answers
145
views
Sprig request Getting 414 Request-URI Too Long
I have sprig components on multiple pages, Some are working fine but some get '414 Request-URI Too Long '
Looking at the networks tab, it sends many elementId={ids}&CRAFT_CSRF_TOKEN={token} after ...
0
votes
1
answer
110
views
I'd like to create a Wishlist and save it into a cookie, instead of having to login
I'm a bit lost.
I'd like to create a wishlist for products and save them into a cookie.
I don't want anybody to have a login and I don't mind if the list is not sharable and only available on the same ...
0
votes
0
answers
56
views
Does descendantOf only accept a single value?
I have a products page on which I'm filtering with Sprig.
There are some categories in the form of checkboxes.
These categories have some subcategories.
The categories are a structured section with ...
1
vote
1
answer
437
views
Create deep copy of twig variable
I'm building a filter page with Craft and Sprig.
The goal is to show the amount of products for each filter.
So for example if we want to filter on color we show 2 checkboxes "Red" and "...
1
vote
2
answers
132
views
Load More Entries based on Parameter Category Filtering
so i filter some entries via the url parameters... that works fine. But if i load more entries (based on the category parameter), the result includes also all other entries with other categories... ...
2
votes
2
answers
300
views
How to prevent Twig Syntax Error when a plugin is disabled?
I am using the Sprig plugin, and for some reason I'm disabling it in some environments.
In config/general.php I have added: 'disabledPlugins' => ['sprig']
And in my twig template, I have a ...
1
vote
2
answers
503
views
Sprig: how to redirect to a URL after submitting to a custom controller?
I have a multi-pages form which is submitting using Sprig plugin.
The action is targeting a controller in a custom module.
Each step of the form is loading using the current step stored in session.
...
1
vote
1
answer
441
views
Sprig - Use a view all button in conjunction with a load more
I'm trying to create a page where I can view entries in a list and have the option where I can view all entries at the click of a button, or choose to load more as and when I want.
With the view all ...
1
vote
1
answer
138
views
Filtering entries via a dropdown inside a Matrix Block
I have Entries with a Matrix field called events. I have an Entries field and a Dropdown field inside those Matrix blocks (block type event). I'm currently filtering by entry using andRelatedTo(['and',...