Giter Site home page Giter Site logo

Event: Drop Storage about storage HOT 8 CLOSED

nilshoerrmann avatar nilshoerrmann commented on August 18, 2024
Event: Drop Storage

from storage.

Comments (8)

nilshoerrmann avatar nilshoerrmann commented on August 18, 2024

Thinking about it, it should be a problem to handle namespaces – at least using event filters: the event filter has access to the full array of posted data so it would be possible to extract the namespaces passed with the form.

from storage.

michael-e avatar michael-e commented on August 18, 2024

As a quick solution you might simply add GET params to your success page's URL.

?storage%5Bbasket%5D=1&storage-action%5Bdrop%5D=1

This should drop the basket namespace.

from storage.

nilshoerrmann avatar nilshoerrmann commented on August 18, 2024

Wow, that's a neat idea as interim solution.

from storage.

michael-e avatar michael-e commented on August 18, 2024

Thanks! I think that using GET params is the most straightforward and flexible way to delete storage items (even single items in a basket, for example — you wouldn't even need a form submission, a link to the current page including a GET string would be enough).

from storage.

nilshoerrmann avatar nilshoerrmann commented on August 18, 2024

I have to admit that I forgot about the option to use GET parameters completely.
Definitely something that should be part of the readme.

from storage.

michael-e avatar michael-e commented on August 18, 2024

Yes, you are right. Maybe you can open another issue saying "Add GET possibilities (esp. for dropping) to the README" or similar? (I am very lazy, cause I have fallen ill again.)

from storage.

michael-e avatar michael-e commented on August 18, 2024

I don't think that an event is still needed. We implemented cool stuff that should cover all use cases.

Should we close this issue?

from storage.

nilshoerrmann avatar nilshoerrmann commented on August 18, 2024

:)

from storage.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.