Giter Site home page Giter Site logo

Ordering is totally broken about ctfd HOT 8 CLOSED

JSmith-Aura avatar JSmith-Aura commented on June 9, 2024
Ordering is totally broken

from ctfd.

Comments (8)

JSmith-Aura avatar JSmith-Aura commented on June 9, 2024

Considering that the categories are also ordered by points, this means if you have easy categories they'll always be at the bottom which is kind of counterintuitive And an awful experience for people.

from ctfd.

ColdHeat avatar ColdHeat commented on June 9, 2024

I'm guessing you didn't actually read the help page that you linked?

Currently, custom sorting is best supported on our core-beta theme. To switch themes, check out this guide.

from ctfd.

JSmith-Aura avatar JSmith-Aura commented on June 9, 2024

"Currently, custom sorting is best supported on our core-beta theme."

Does not imply "only works on this theme". Frankly I think the docs might need an update to make it clear what this is, and then the docker image that you guys provide might want to actually provide said theme.

from ctfd.

ColdHeat avatar ColdHeat commented on June 9, 2024

3.5.2 and 3.5.3 were released awhile ago and 3.6.0 is due out very soon which includes core-beta in the Docker image. You have always been free to install code-beta on your own.

from ctfd.

JSmith-Aura avatar JSmith-Aura commented on June 9, 2024

So the docs should read "if you want to do custom ordering, please install the core-beta theme as the default theme does not support this"
Sweet as, thanks.

from ctfd.

ColdHeat avatar ColdHeat commented on June 9, 2024

There is a way to sort on the core theme but it's hard to do and not as easy as the core-beta theme so it's not mentioned. All in all just use core-beta.

from ctfd.

JSmith-Aura avatar JSmith-Aura commented on June 9, 2024

Oh, what?
Is it by creating the same fields as the core-beta theme in the theme settings editor? As I did try that

So the docs are out of date

from ctfd.

ColdHeat avatar ColdHeat commented on June 9, 2024

You can try to use the window.BETA_sortChallenges function however it is not heavily used or tested.

https://github.com/CTFd/CTFd/blob/master/CTFd/themes/core/assets/js/pages/challenges.js#L285-L287

It is much easier to just use core-beta. Core is effectively deprecated.

from ctfd.

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.