Hi

Neat -- many thanks

regards

On Tuesday, April 29, 2014 11:58:27 PM UTC+2, David Gifford wrote:
>
> Hello everyone,
>
> One outstanding ticket for TW5 was the creation of something that fulfills 
> the function of the NewHerePlugin for TW classic (
> http://mptw.tiddlyspot.com/#NewHerePlugin). That plugin allows the user 
> to click a button in one tiddler, a parent tiddler, and create a new 
> tiddler, the child tiddler, tagged with the title of the parent tiddler.
>
> A while back Stephan Hradek created a new tiddler plugin for TW5. Last 
> week I finally sat down and figured out how to use his plugin to create a 
> new here button. You can see it in action, and see a number of tweaks I 
> have made to TW5, at http://giffmex.org/experiments/braintags.html. In 
> the toolbar at the top of each tiddler there you will see five extra icons. 
> These are new here buttons based on different templates. (Please note that 
> this file is a personal experimental sandbox. It is not meant for general 
> distribution. Should you download it and use it for your own note-taking, I 
> don't mind, but use only with extreme caution. I will not be responsible 
> for anything that happens to your data if you run into problems.)
>
> In order to close the outstanding ticket for TW5, I wanted to write up, 
> here, the process, so you can create your own new here buttons.
>
> 1. GET THE PLUGIN: Go to Stephan's site http://tiddlystuff.tiddlyspot.com/and 
> open the More tab, then open the System tab. Drag the following tiddler 
> to your TW5: 
> $:/plugins/skeeve/newtiddler<http://tiddlystuff.tiddlyspot.com/#%24%3A%2Fplugins%2Fskeeve%2Fnewtiddler>
> .
>
> 2. SET UP THE BUTTON SCRIPT: 
>
> Create a tiddler ($:/_viewtoolbar/newherebutton or a name of your 
> choosing) and tag it $:/tags/ViewToolbar. Paste the following in the 
> tiddler, then close and save.
>
> \define get_title(l)
> $l$$(title)$]]
> \end
>
> <$set name="title" value={{!!title}}>
> <$set name="tags" value=<<get_title "[[">>>
> <$newtiddler class="btn-invisible" title="your title here" 
> skeleton="$:/_template/newhere">{{ $:/core/images/new-button  
> }}</$newtiddler>
> </$set>
> </$set>
>
> (Note that this should be placed at the VERY TOP of the tiddler body.)
>
> 3. POSITION THE NEW BUTTON CORRECTLY IN THE VIEWTEMPLATE
>
> In your TW's More tab, in the Shadows tab, open the tiddler 
> $:/tags/ViewToolbar<http://giffmex.org/experiments/braintags.html#%24%3A%2Ftags%2FViewToolbar>.
>  
> Click to edit, and in the list field, add $:/_viewtoolbar/newherebutton TO 
> THE LEFT of the other tiddler names listed. Close and save.
>
> 4. CREATE THE TEMPLATE OR SKELETON TIDDLER
>
> Create a new tiddler entitled $:/_template/newhere. Tag the tiddler 
> $(tags)$. Upon adding this tag, it will turn into a dot or an invisible 
> tag. Not to worry. If you wish to add any content or other tags you wish to 
> appear on every single new tiddler you make with the newhere button, feel 
> free to add that, too. Close and save.
>
> Now you should have a new tiddler button to the left of the other icons at 
> the top of all tiddlers, that when clicked, creates a new tiddler based on 
> the template or skeleton tiddler, whose tag is the title of the tiddler 
> from which you clicked the newhere button.
>
> For a little more documentation, see the tiddler Newtiddler Widget at 
> Stephan's site http://tiddlystuff.tiddlyspot.com/.
>
> Enjoy your new here buttons, everyone! And don't forget to bookmark this 
> thread so you don't lose these instructions.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to