jamestagal / edtechdesigner

A professional blog site of Benjamin Waller
https://edtechdesigner.io
0 stars 1 forks source link

Overriding routes #10

Closed jamestagal closed 2 years ago

jamestagal commented 2 years ago

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)",
jimafisk commented 2 years ago

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

So the following should work:

"posts": "posts/:fields(title)",
jamestagal commented 2 years ago

Thanks Jim. That fixed it 👍