Skip to content

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

@bobbingwide

Description

@bobbingwide

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions