I cant answer your whole question but maybe this will help.
in my view template I have;
<div class='toolbar'>
[[.viewnewheartoolbarTemplate]]
</div>
which amongsts other things .viewnewheartoolbarTemplate contains
<span macro='newTaskHere label:"Task"'></span>
<span macro='newProjectTaskHere label:"ProjectTask"'></span>
<span macro='newReferenceHere label:"Reference"'></span>
<span macro='newSubReferenceHere label:"SubReference"'></span>
<span macro='newIdeaHere label:"Idea"'></span>
<span macro='newGoalHere label:"Goal"'></span>
<span macro='newIssueHere label:"Issue"'></span>
</span>
where newHerePlugin has been updated to read;
//{{{
merge(config.macros, {
newHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+"
tag:[["+tiddler.title+"]]>>",place,null,tiddler);
}
},
newTaskHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.task>>",place,null,tiddler);
}
},
newsubTaskHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.subTask>>",place,null,tiddler);
}
},
newProjectTaskHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.projectTask>>",place,null,tiddler);
}
},
newLogHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.log>>",place,null,tiddler);
}
},
newContactHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.contact>>",place,null,tiddler);
}
},
newIssueHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.reference tag:&issue>>",place,null,tiddler);
}
},
newGoalHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.reference tag:&goal>>",place,null,tiddler);
}
},
newIdeaHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.reference tag:&idea>>",place,null,tiddler);
}
},
newReferenceHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.reference>>",place,null,tiddler);
}
},
newSubReferenceHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.subReference>>",place,null,tiddler);
}
},
newJournalHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newJournal "+paramString+" tag:[["+tiddler.title+"]]
tag:.diary>>",place,null,tiddler);
}
},
testMacro: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:.task fields:'parent:[["+tiddler.title+"]] above:+tiddler.parent+'
>>",place,null,tiddler);
}
},
newSiblingHere: {
handler:
function(place,macroName,params,wikifier,paramString,tiddler) {
wikify("<<newTiddler "+paramString+" tag:[["+tiddler.title+"]]
tag:[["+tiddler.tags+"]]>>",place,null,tiddler);
}
}
});
//}}}
The result is an extra toolbar displaying on all tiddlers with various
newhere items
Hope this helps.
Anthony Muscio
LaSourceProjects.org Open Source Sustainability Projects
LaSource.com.au <http://www.LaSource.com.au> Sustainable Products and
Business
SerendipityIdeas.com IT hints and Tips and Website hosting
Like personal Web 2.0 ? see www.tiddlywiki.com
On Sun, Aug 1, 2010 at 16:38, twgrp <[email protected]> wrote:
> [posted on TW Dev some time ago, but no response. Hoping for better
> luck here.]
>
> I like the TreeViewPlugin [1] for a hierarchical tree structure menu,
> but would like for a "newTiddler" type button to appear next to each
> item in the tree menu, to easily create new correctly tagged items.
>
> I've located where to put it, but I don't know how to 'phrase' the
> macro there so it works - about 3 inches / 1 decimeter up from the
> bottom at:
> http://treeview.tiddlyspot.com/#TreeviewPluginPlugin2
> ...is the line:
> rtn = rtn +"</ul>\n" ;
>
> Q1) Various attempts to insert a the macro call do not work. I don't
> know how to "phrase" a macro call there or if that is somply the wrong
> way all together.
>
> Q2) Actually, it's not the core newTiddler macro I wish to use but
> newHere macro from the NewHerePlugin [2]. This creates a new tiddler
> but tagged with the name of the tiddler from where the macro was
> invoked, thus resulting in it being correctly presented in the tree
> menu. I'm guessing this affects how the macro should be called,
> containing the name of the menu item to be rendered. There are no
> instructions in the plugin itself so I don't know how to do this.
>
> Thank you!
>
> [1] http://treeview.tiddlyspot.com/
> ...or, my pref. layout: http://twt-treeview-executive.tiddlyspot.com/
> [2] http://twt-treeview-executive.tiddlyspot.com/#NewHerePlugin
> ...or originally; http://mptw.tiddlyspot.com/#NewHerePlugin
>
> --
> 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]<tiddlywiki%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tiddlywiki?hl=en.
>
>
--
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.