Replies: 1 comment
-
That's where the Fragment Plugin really shines. There's a simple demo app showing modal support in the docs, and there's also a much more comprehensive demo showing modal and filter support from the plugin itself. If you've tried implementing from those examples, feel free to share what you've got so far so others can chime in. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is a very important situation, but I couldn't figure out how to do it. What I want to do is exactly this:
/products/
page./products/{product_name}
./products/
page, swup goes to the relevant detail page.In this situation;
To explain this situation more simply;
Have a login page at
"/login/"
. Contain a login form<form>...</form>
.In some cases, when the "login" button is clicked, instead of going to "/login/" and changing the page, you stay on the same page, target the
<form>...</form>
element on the target page, and open it in a"modal"
within the page you are currently on.I tried to create a structure like above, but I could not achieve this with the "Fragment Plugin". I also tried various scenarios by listening to the
"swup:visit:start"
event, but I failed.Is it possible to do this? Please someone help me.
Beta Was this translation helpful? Give feedback.
All reactions