Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement query-block overrides to support orderBy=rand #24

Open
2 tasks
bobbingwide opened this issue May 5, 2021 · 0 comments
Open
2 tasks

Implement query-block overrides to support orderBy=rand #24

bobbingwide opened this issue May 5, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bobbingwide
Copy link
Owner

There are a couple of pages where I want to demonstrate the query-block but with orderBy=rand, which translates to orderby=rand in the query.

Requirement

  • Easily add capability to sort query results randomly
  • Don't worry about pagination.

Solution

  • Implement an override to the orderBy field when the className on the query block is 'rand'
  • Set the Additional CSS class(es) to 'rand' for those queries which need to be displayed randomly.
@bobbingwide bobbingwide added the enhancement New feature or request label May 5, 2021
@bobbingwide bobbingwide self-assigned this May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant