Skip to content

[Feature] Treat url_path as a field/relation on a content-type #432

Description

@douwepausma

Addon

No specific addon – This feature request is related to Webtools Core

Summary

Populate url_path in for example a find & findMany queries on content-types, but also webhook or whenever a content-type is queried. Pretty much just treat url_path as a field.

Why is it needed?

  • Let's say you want to get all articles and list them as links on your website. Generally one would use a findMany to do this, but this would not provide the url_path of the article so there's no way you could set the link to the article.
  • Or maybe a webhook is being triggered on the update of a content-type that revalidates the cache of a given path. Now there's no path to supply the revalidation webhook.

Suggested solution(s)

  • Somehow allow for populating the url_path like with other relations
  • Or extend returned data with the url_path

Related issue(s)/PR(s)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions