pluginpal/strapi-webtools

More field options in the URL pattern (e.g. relational fields)

Opened this issue · 1 comments

Maybe I am doing this wrong, but I would like to have my URL look like this:

/blog/[category]/[createdAt]/[title]

The category is a relational field type and the createdAt date is auto generated for each post.

For an example, all my URL alias's should look like the following. Each post is neatly organized into the year, month and day.

/blog/how-to/2022/10/12/upgrade-your-crosshair-vi-hero-motherboard-firmware-with-system76-s-pop-os/

Hi @csharpee,

As of now, only fields of type id, uid or string are allowed into the url pattern.
That means you cannot use a relation (like category) and I believe createdAt is also not possible as it is not one of these field types.
In the future these features will be added but in the short term this will not be worked on.