On Sunday, August 9, 2015 at 9:47:11 AM UTC+2, Peter Merel wrote:
>
> I like this but I'm thinking of something a bit simpler. Right now when I 
> turn on the "title as a link" it's pretty worthless - the only effect of 
> clicking is to nudge the focus in the story stream.
>

"pretty worthless" ... ouch, that hurts. We all want to create great stuff. 
I personally prefer a more diplomatic: "I like the feature, but there's 
room for improvements ... to fit my usecase", or something similar ;)
 

> What I want is for clicking the title link to open the References tab. I 
> see the title as the obvious place to click to get backlinks - that's how 
> it used to work on c2 anyway.
>

I did have a look at the changes added to 
<https://github.com/Jermolene/TiddlyWiki5/commit/0d5033e2a00e34a7665c2cff58c0d15da224dd2b>the
 
ViewTemplate. 

I think, there are 3 possibilities to get close to your desired behaviour. 

1) a simple and fast work around ... imo close, but not exactly what you 
want. 
 - open the TW control panel: http://tiddlywiki.com/#%24%3A%2FControlPanel
 - select: Appearence: Toolbars: ViewToolbar
 - check: info *– Show information for this tiddler*    to make the info 
panel button visible for every tiddler
 - tell your users, that the can get the "backlinks" if they select the 
"info-button" and the "Reference" tab. 

 

> So ... is there an easy way to tweak your code here to do this? Really it 
> seems like it ought to be easy to adorn the link in the title ViewTemplate 
> with some kind of transclusion magic but I'm not certain that's sensible ...
>

2) I think there is a way, to create an additional button, that can create 
the exact behaviour. ... but

The problem here is, that TW stores the "info panel" open/closed state and 
the "info tab selection" in temporary tiddlers. 
Those tiddler names use a random number, to make them unique :/
So to create a button, that opens the info panel and preselects the 
Reference tab, is a bit more complicated, since we need to remove the 
"randomness". But we still need unique names, otherwise all open tiddlers 
will open/close the info panel .... 

So I don't have a fast solution, for the exact behaviour. I'd create a new 
toolbar button, because it is independent from the ViewTemplates. ... but
I think modifying the Templates is still needed, to tackle the above 
mentioned problems. ...

3) Create a new toolbar button, that can open a dropdown that lists the 
references / backlinks
The dropdown could use the macros from the prior posts. 


IMO no 3 should be relatively simple to implement and shouldn't interfere 
with the templates. 

No 2 is the version I personally prefer, since I try to remove all 
dropdowns and modals from my own themes.

As I wrote, no fast solution and I have to think about no 3 a bit more, so 
others my jump in too :)

have fun!
mario






-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/8cc9ff05-04bd-4611-afed-7debc1181b57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to