Ticket #1275 (closed enhancement: fixed)
Update newTiddler paramifier to take arguments
| Reported by: | jdlrobson | Owned by: | MartinBudden |
|---|---|---|---|
| Priority: | undefined | Milestone: | 2.6.3 |
| Component: | core | Version: | |
| Severity: | undefined | Keywords: | |
| Cc: |
Description
In certain cases it is useful to be able to generate a link to a new tiddler with some prefilled tags/custom fields.
This could be achieved by modifying the newTiddler paramifier to treat the string as a parameter string when a title keyword is used.
#newTiddler:[[title:"hello world" tag:foo tag:bar fields:"color:red"]]
would create a new tiddler called "hello world" tagged with foo and bar and the custom field color set to red.
#newTiddler:[["hello world" tag:foo tag:bar fields:"color:red"]]
however would create a tiddler called "hello world" tag:foo tag:bar fields:"color:red"
This would increase the power of the existing mechanism. Suggested patch attached.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

