Måns wrote:
> > I'm trying to make a preformatted viewtemplate with prearranged fields
> > for date, title, subtitle, recipient(name fetched from field in
> > another tiddler), bodytext divided into columns with linebreaks etc...
Mel replied:
> You can do this with parameters to the newTiddler macro. As an
> example, here is my project list tiddler.
I don't think this is what Måns is asking for. Rather, I think he is
asking about how to define a custom ViewTemplate to automatically
render extra "prearranged fields", in addition to (or instead of) the
standard tiddler fields you get with the default ViewTemplate.
> Here, the principal is the same, but since I want the new task tiddler
> to have a toggleTagPlugin button in it, I have to go pretty far out of
> my way to escape the contents of the newTiddler macro's "text"
> property. It works, though.
Instead of putting the 'default text' directly within the macro (which
results in the need for the awkward quoting in your macro example),
try this technique:
1) Put the desired content into a separate tiddler (e.g., [[MyStuff]])
using regular TiddlyWiki syntax... no special quoting is needed.
2) Use the following 'text' param in the <<newTiddler>> macro:
text:{{store.getTiddlerText("MyStuff",""}}
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---