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

Create path based on another field #145

Open
cloetensbrecht opened this issue Jun 10, 2022 · 2 comments
Open

Create path based on another field #145

cloetensbrecht opened this issue Jun 10, 2022 · 2 comments
Labels

Comments

@cloetensbrecht
Copy link
Contributor

It would be nice to make it possible to define the field that generates the path. By default the title field is used, but in some cases we would like to create the path based on another field.

image
image

To achieve this it's of course possible to use the following configuration:

{
  title: text('Invoice number', {width: .25}),
  name: text('Title', {width: .75})
}

But this results in strange and incorrect data:

{
  "title": "14/00003",
  "name": "My invoice title has no influence on the generated path"
}

It would be better that the data keys are logic and match their value:

{
  "invoicenumber": "14/00003",
  "title": "My invoice title has no influence on the generated path"
}
@benmerckx
Copy link
Member

benmerckx commented Jun 10, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants