I'm trying to create a template that uses Lua-expressions in the frontmatter. At moment it looks like this:
---
tags: "meta/template/page"
## Uncomment any of the single-commented lines to set options
#############################################################
## Offer a suggested name when triggered
#suggestedName: "Meeting Notes/"
## Whether or not to confirm the suggestedName or go there directly
#confirmName: false
## To open a page if it already exists rather than create it fresh
openIfExists: true
## To trigger the page template with a custom command
#command: Create My Custom Page
## To trigger the page template with a custom key
#key: "Ctrl-q c"
#mac: "Cmd-Alt-q"
## To prefill frontmatter
frontmatter: |
created: ${date.today()}
number:
---
The frontmatter attribute "created" evaluates fine and fills this field with the current date of the day the page was created from the template. What I want to do in the number field is reuse the page name that I enter when running the "create page from template"-command. At the moment I don't know if this is even possible.