Giter Site home page Giter Site logo

Comments (4)

philli-m avatar philli-m commented on July 19, 2024

NOTES:
We limit the list of projects permitted for the storefront to just running ones:

def project_choice_limit():

As long as we don't edit the store front items after a selected project is finished it will display the project, this is the intended behavior.
If we edit the storefront after one of the selected projects has finished the projects update and there is now an empty item in the random_items list as a finished project does not fit the 'project_choice_limit' anymore
I think this is whats happening anyway.

@Rineee i mistook this for a frontend problem and am now not sure on the best approach here, I don't know a way to make the storefront snippet know to keep all existing random_items unless formfield is deleted of changed. Unfortunatly the formfield does unset it's self when the project ends but it doesn't register as an empty field, can be seen here in third one down https://meinberlin-dev.liqd.net/admin/snippets/meinberlin_cms/storefront/edit/1/#tab-project_tiles
any pointers would be appreciated but I can also take another hit at it next week as there's a bunch of story related issues before release

from a4-meinberlin.

Rineee avatar Rineee commented on July 19, 2024

@philli-m @maxliqd So the desired behaviour would be that finished projects are still shown, right? You can only not add an already finished project to the storefront, but if it finishes later, it should still show?

from a4-meinberlin.

maxliqd avatar maxliqd commented on July 19, 2024

@Rineee Yes, finished projects shall still appear in the storefront if they were added before as a running project. But you cannot add an already finished project, because otherwise the list would be way too long. That's how I understood @philli-m

from a4-meinberlin.

philli-m avatar philli-m commented on July 19, 2024

@Rineee also to note in case it wasn't clear, finished projects are still shown as finished tiles until the list is edited in wagtail then they become blank entries

from a4-meinberlin.

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.