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

Add Argument/Filter based routes #399

Open
1 task
Tracked by #396
Decipher opened this issue Dec 7, 2021 · 0 comments
Open
1 task
Tracked by #396

Add Argument/Filter based routes #399

Decipher opened this issue Dec 7, 2021 · 0 comments
Labels
enhancement New feature or request module: views Related to the `druxt-views` module
Milestone

Comments

@Decipher
Copy link
Member

Decipher commented Dec 7, 2021

Is your feature request related to a problem? Please describe.
As a user I want the ability to define Views routes that include Arguments or Filters in the URL.

Describe the solution you'd like

  • Add option to define Views "routes" with Child parameters.

Describe alternatives you've considered

  • Automatically define page routes using the JSON:API
    • This has been tested and works reasonably well, but will need to be it's own issue.

Additional context
Example format:

export default {
  druxt: {
    views: {
      pages: {
        '/blog': {
          viewId: 'blog',
          displayId: 'page_1'
        },
        '/news/:args_0/:args_1': {
          viewId: 'news',
          displayId: 'page_1',
        },
        '/breaking': {
          viewId: 'news',
          displayId: 'page_1',
          args: [true]
        }
      }
    }
  }
}
@Decipher Decipher added enhancement New feature or request module: views Related to the `druxt-views` module labels Dec 7, 2021
@Decipher Decipher added this to the 1.2.0 milestone Jun 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request module: views Related to the `druxt-views` module
Projects
None yet
Development

No branches or pull requests

1 participant