Question regarding the toc-itemTemplate.
Does this apply to the tocp WIP plugin, and will modifying it allow for additional buttons to appear for the TOC nodes, such as a ‘new journal here’ button next to the new-here button?
Question regarding the toc-itemTemplate.
Does this apply to the tocp WIP plugin, and will modifying it allow for additional buttons to appear for the TOC nodes, such as a ‘new journal here’ button next to the new-here button?
that could be achieved through the item template but consider hiding it, perhaps ctrl click for new here on any titile or only those with a custom item template. buttons can be made to look like title links.
Hi Tones, I’m not sure I follow the suggestion your making.
I do use some custom CSS to hide the nodes ‘new-here’ button unless hovering the link within the TOC with my cursor, but are you suggesting not having an additional button next to it and instead adding CTRL + MOUSE1 action to the existing button to create a new-journal tiddler from it?
I was thinking either a way to use a list field to choose which buttons appear if it wasn’t the toc-itemTemplate, but I’m interested in your suggestion
For reference:

Thta good, I dont know css as much to do that. Although I could work it out.
I was - but in this case the title link will be a button that looks like a link, and yes ctrl-Click to create new here on any title.
Yes, you could make a toolbar to add to each title, But how many different buttons would you want?
So they all could use a modifier key
Always allow the title to be dragged and dropped. I have an alternate tags bar that allows me to drop titles on to tag so you can tag tiddlers in the story with anything in the contents etc…
Oh just right now would be the new-journal-here button, but I imagine later on other buttons like “new-event-here” or “new-task-here” comes to mind 
You could design the new here to create the appropriate tiddler, eg new hear on a tiddler called Events would create an event (only) this is possible with the TOC enhancements because you can customise the template on individual tiddlers.
@pmario could you put the definitive latest version in the top post please. Yell out if you need help or support, I would love to push this along.
High level info:
There is a toc-itemTemplate example at: toc-param-itemTemplate which shows a checkbox in front of the _linkTemplate
Have a closer look at the my-item-template tiddler in the example. You can add your own button after the <<_linkTemplate>> call.
Low level info:
The “new-here” buttons are shown if tv-toc-show-new-child() yes and are created using the procedure: toc-newChildButton(). It depends on the mode that is active, what the “new here” buttons actually does.
There are 3 modes: tagMode, tocpMode and tagLikeMode
If you would want to add a new low level button there, you would need to overwrite the toc-newChildButton() procedure with your own procedure.
No need! I was just looking at the wrong thing, but you pointed me to exactly what I had in mind! 
To make the itemTemplate more flexible, I needed to change the DOM structure a little bit.
This had a side effect on the tabbed-? macros. The handle the “selected” state a bit different now.