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

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

Open
oDinZu opened this issue Nov 24, 2022 · 1 comment
Open

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

oDinZu opened this issue Nov 24, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@oDinZu
Copy link

oDinZu commented Nov 24, 2022

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/
@oDinZu oDinZu changed the title Alias relation of /blog/[category] Alias relation of /blog/[category]/[updatedAt]/[title] Nov 24, 2022
@oDinZu oDinZu changed the title Alias relation of /blog/[category]/[updatedAt]/[title] Alias relation of /blog/[category]/[createdAt]/[title] Nov 24, 2022
@boazpoolman boazpoolman added the wontfix This will not be worked on label Dec 31, 2022
@boazpoolman
Copy link
Member

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.

@boazpoolman boazpoolman added the enhancement New feature or request label Dec 31, 2022
@boazpoolman boazpoolman changed the title Alias relation of /blog/[category]/[createdAt]/[title] More field options in the URL pattern (e.g. relational fields) Dec 31, 2022
@boazpoolman boazpoolman self-assigned this Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants