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

Overriding routes #10

Closed
jamestagal opened this issue Dec 29, 2021 · 2 comments
Closed

Overriding routes #10

jamestagal opened this issue Dec 29, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@jamestagal
Copy link
Owner

jamestagal commented Dec 29, 2021

Hi Jim,
When changing the routes as you showed in your video Using Plenty to make a simple Svelte static site to use the title post of a field, it doesn’t work for me. I tried adding the following code to the plenti.json file but it still uses the file extension as its name.

"posts": "posts/:field(title)",
@jamestagal jamestagal added the bug Something isn't working label Dec 31, 2021
@jimafisk
Copy link
Collaborator

jimafisk commented Jan 2, 2022

The API was update to use :fields() instead of :field() is v0.4.x: plentico/plenti#119

So the following should work:

"posts": "posts/:fields(title)",

@jamestagal
Copy link
Owner Author

Thanks Jim. That fixed it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants