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

[Feature request] Templater integration directly into "template" section of Modal forms #309

Open
AucklandIO opened this issue Jul 14, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AucklandIO
Copy link

Is your feature request related to a problem? Please describe.

Currently, a subsequent step must be initiated after the Modal Form Template has been rendered into a note if the user wants to trigger the Templater composition. If Modal Form is called via the integrated script, Templater will resolve and compose TP scripts in the file before the modal form is called (as this creates the file and inserts the Modal Form content into front matter after the Templater content has been composed).

Describe the solution you'd like

I would like the ability to run TP scripts from the Modal Form Template section directly. In this way, a user could use the Modal Form templated properties injection to modify Templater scripts dynamically based on information from the Modal Form.

Example:
Modal Form Requests:

Domain: Personal / Professional
Area: Health / Household / Interests
Project Name: project name text (eg. "Build Deck")

In the template section, one could enter the following:
[[{{Domain}}/{{Area}}/{{Area}} Projects/{{Project Name}}/<%tp.file.name("{{Project Name}} - Tasks")%>| Project Tasks]]

Which could then have the frontmatter inserted:
[[Personal/Household/Household Projects/Build Deck/<%tp.file.name("Build Deck - Tasks")%>| Project Tasks]]

And then Templater resolves the link into placeholder file within the structure of the Dashboard or MOC of the project.

The user could build further template or modal form functionality into this kind of link, calling Templater or modal form templates to create the subsequent file based on the frontmatter in the parent file just created.

This provides 2 potential benefits: File Organizational Structure, and frontmatter property classification. It allows the user to subsequently match this file property data with other plugins like Metadata Menu for calling views of related projects from this kind of structured organizational schema, and maintains a distinct separation of files pertaining to areas of concern (projects, tasks, etc...) in the event that notes had to be moved elswhere.

@AucklandIO AucklandIO added the enhancement New feature or request label Jul 14, 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
Projects
None yet
Development

No branches or pull requests

2 participants