[tw5] Re: SimpleNavigation

2019-12-11 Thread TonyM
For the passers by

 <$transclude field="caption">
<$view field="title"/>
 

*Shows only the caption OR the title because*


The TranscludeWidget  treats any 
contained content as a fallback if the target of the transclusion is not 
defined 

(ie a missing tiddler or a missing field).


This varies according to the widget in use, look at tiddlywiki.com widget 
tiddler to see the ViewWidget works the same way but not others;

eg The *action-createtiddler* widget is invisible. Any content within it is 
ignored. The content of the <$browse> widget is ignored


Regards

Tony


On Wednesday, December 11, 2019 at 2:54:46 PM UTC+11, A Gloom wrote:
>
> Thanks for all help & tips, managed to get it working :) 
>
>
> most excellant to hear
>  
>
>> I created a macro with 
>>
>> \define tv-wikilink-tooltip()
>> <$transclude field="caption"><$transclude field="title"/>
>> \end
>>
>
> ah, thats how the ToC macro displays caption then title -- you can also 
> use that in normal lists (see below) -- reusing code is good 
>
> <$list filter="[list[$:/tags/SideBar]]">
>
> <$set name="tv-wikilinks" value="yes">
>   <$link><$transclude field="caption">
> <$view field="title"/>
>   
> 
> 
>
>
> ToC macro
>
> \define toc-caption()
> <$set name="tv-wikilinks" value="no">
>   <$transclude field="caption">
> <$view field="title"/>
>   
> 
> \end
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2f4b3eb4-942d-49b7-84c2-a3b7ba5ec94d%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-10 Thread A Gloom

>
> Thanks for all help & tips, managed to get it working :) 


most excellant to hear
 

> I created a macro with 
>
> \define tv-wikilink-tooltip()
> <$transclude field="caption"><$transclude field="title"/>
> \end
>

ah, thats how the ToC macro displays caption then title -- you can also use 
that in normal lists (see below) -- reusing code is good 

<$list filter="[list[$:/tags/SideBar]]">

<$set name="tv-wikilinks" value="yes">
  <$link><$transclude field="caption">
<$view field="title"/>
  




ToC macro

\define toc-caption()
<$set name="tv-wikilinks" value="no">
  <$transclude field="caption">
<$view field="title"/>
  

\end

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b8ae06a4-44a7-4710-86fd-9bfbe71e17d6%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-10 Thread Magnus
Thanks for all help & tips, managed to get it working :) 
I created a macro with 

\define tv-wikilink-tooltip()
<$transclude field="caption"><$transclude field="title"/>
\end

and changed <$button to <$link in the simpleNavigation-macro and everything 
is dandy :D

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/c68f13a9-5908-443e-b756-5c4699df8f3a%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-09 Thread TonyM

>
>  
> How would I go about to change the tooltip to show the caption-field of 
> the target tiddler instead of the title?
>

 This provides the caption if available otherwise the title
{{{ [all[current]get[caption]] ~[all[current]get[title]] }}}

However getting this into the tooltip there are a few methods, but they all 
seem fussy
<$wikify name=mytooltip text="""<$view field="created" 
format="relativedate"/>, <$view field="created" format="date" template="On 
-0MM-0DD at 0hh:0mm"/> Caption or Title {{{ [all[current]get[caption]] 
~[all[current]get[title]] }}}""" >

<$button tooltip=<> >Mouse over

<$wikify>

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/91474fea-e1bf-4f60-aac1-7800cbd97e2f%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-09 Thread Magnus
Looks interesting, have to play with and see how I can use it :)

Den fredag 6 december 2019 kl. 05:52:24 UTC+1 skrev A Gloom:
>
> Not sure if this would be of help, it involves tags & fields but what I 
> use to backtrack a tiddlers' parent & grandparent and make a tree view of 
> them
>
> <$list filter="[all[current]tags[]has[categorytype]]">
> <$link><$view field=title/> - <$view field=categorytype/>
> <$list filter="[all[current]tags[]has[categorytype]]">
> <$link><$view field=title/> - <$view field=categorytype/>
> <$list filter="[all[current]tags[]has[categorytype]]">
> <$link><$view field=title/> - <$view field=categorytype/>
> 
> 
> 
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/93a3f2d8-965d-4913-9c2b-c575531fdf11%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-09 Thread Magnus
I think I worked out the sorting problem too, thanks to all your help! 
Just a thought, a "1-99% problem", 1% of the overall design, 99% of the 
work :D 
How would I go about to change the tooltip to show the caption-field of the 
target tiddler instead of the title?

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e85f6688-e5d3-4fba-99ea-af8f14907c15%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-09 Thread Magnus
The http://magnus.test.tiddlyspot.com/ is only a small, generic testing 
ground to make it easier to find errors :) The "real" work is on 
http://magnus.playground.tiddlyspot.com/ (still only a small set of all 
orchid species) but all template and systemtiddler are hidden make it 
harder to work with :)

Den lördag 7 december 2019 kl. 04:39:33 UTC+1 skrev TonyM:
>
> Magnus,
>
> I am a little unsure of you having fields for *parent*-field and 
> *relation*-field. My Parent is my child's grandparent, my grandchild's 
> great grandparent. The only information is who is my parent then you can 
> follow the story. The Kin Operator by Bimlas can help as can the TOCP 
> plugin. Most relationships can be inferred from attributes and need not 
> them self exist as separate entities. If you do have such a relationship 
> field with a value you may be forced to maintain it unnecessarily when a 
> change is made somewhere in the tree..
>
> Regards
> Tony
>
> On Saturday, November 30, 2019 at 12:17:23 PM UTC+11, Magnus wrote:
>>
>> I have been trying to adapt the SimpleNavigation from 
>> https://tw-scripts.github.io/Yazd/#macro%2Fsimple-navigation.
>> I wanted to be able to cycle thru all childrenTiddler with the same 
>> parentTiddler but I can only cycle thru all tiddler.
>>
>> I have a testTW up on http://magnus.test.tiddlyspot.com/.  All tiddler 
>> have a *parent*-field with value no 1 or no 2, and a *relation*-field 
>> with value parent, child or grandchild. I would like to be able to cycle 
>> from one child to the next child or grandchild with the same parent.
>>
>> I bet it is super-simple but I think I tried all combination my tired 
>> brain can think of. Hope a tiddlywikier out there can help me :D
>>
>> Cheers
>> Magnus 
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/931d869f-cd3a-4929-b5fa-5f0b1677928e%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-06 Thread TonyM
Magnus,

I am a little unsure of you having fields for *parent*-field and 
*relation*-field. 
My Parent is my child's grandparent, my grandchild's great grandparent. The 
only information is who is my parent then you can follow the story. The Kin 
Operator by Bimlas can help as can the TOCP plugin. Most relationships can 
be inferred from attributes and need not them self exist as separate 
entities. If you do have such a relationship field with a value you may be 
forced to maintain it unnecessarily when a change is made somewhere in the 
tree..

Regards
Tony

On Saturday, November 30, 2019 at 12:17:23 PM UTC+11, Magnus wrote:
>
> I have been trying to adapt the SimpleNavigation from 
> https://tw-scripts.github.io/Yazd/#macro%2Fsimple-navigation.
> I wanted to be able to cycle thru all childrenTiddler with the same 
> parentTiddler but I can only cycle thru all tiddler.
>
> I have a testTW up on http://magnus.test.tiddlyspot.com/.  All tiddler 
> have a *parent*-field with value no 1 or no 2, and a *relation*-field 
> with value parent, child or grandchild. I would like to be able to cycle 
> from one child to the next child or grandchild with the same parent.
>
> I bet it is super-simple but I think I tried all combination my tired 
> brain can think of. Hope a tiddlywikier out there can help me :D
>
> Cheers
> Magnus 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/eb3c5849-1d86-4328-af3d-3771ca696a79%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-05 Thread A Gloom
Not sure if this would be of help, it involves tags & fields but what I use 
to backtrack a tiddlers' parent & grandparent and make a tree view of them

<$list filter="[all[current]tags[]has[categorytype]]">
<$link><$view field=title/> - <$view field=categorytype/>
<$list filter="[all[current]tags[]has[categorytype]]">
<$link><$view field=title/> - <$view field=categorytype/>
<$list filter="[all[current]tags[]has[categorytype]]">
<$link><$view field=title/> - <$view field=categorytype/>




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7054858b-19d2-4ed3-bd2b-974b922fa760%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-05 Thread Magnus
I manage to cycle through only those with the same parent, now I'm trying 
to double-sort them, sort on relation, grandchildren first children last, 
and sort them after name, caption or whatever last. Kinda works but there 
isn't a next button on the last child-tiddler to first grand-child. It does 
work in the grand-child-tiddlers, the next and previous button are there 
and jumps to the right tiddler. 
I think it's still my filtering that's not working quite right

Den fredag 6 december 2019 kl. 02:00:36 UTC+1 skrev A Gloom:
>
> Magnus
>
> Thanks for the help, suspected it had to do with the filter. Think I made 
>> it work, there is only one sorting problem left :)
>>
>
> Cool, whats the sorting problem? 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5cd70b66-6e7b-4801-ab47-9f17ff2fa85d%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-05 Thread A Gloom
Magnus

Thanks for the help, suspected it had to do with the filter. Think I made 
> it work, there is only one sorting problem left :)
>

Cool, whats the sorting problem? 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/172c428e-8654-44c6-ac6e-5984f541922c%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-12-05 Thread Magnus
Thanks for the help, suspected it had to do with the filter. Think I made 
it work, there is only one sorting problem left :)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/44e1555c-340f-4a4b-adf8-98e1d6951670%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-11-30 Thread A Gloom
I believe TWScripts has Tobias Beer's filter and filter operator examples 
-- here's the wki of filter examples -- http://tobibeer.github.io/tw/filters

I believe you want -- 
each of type *(type being field)
[each[type]get[type]]

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f4f4a5af-2a96-459a-a51e-198b6e87e138%40googlegroups.com.


[tw5] Re: SimpleNavigation

2019-11-30 Thread Mohammad
Hi Magnus,
 This is a question of how write a filter to work as you asked!

The mechanism of simplenavigation is quite easy! It steps through tiddlers 
come from filter in a $list widget

Hopw some one with better knowledge of filter operator can help.

On Saturday, November 30, 2019 at 4:47:23 AM UTC+3:30, Magnus wrote:
>
> I have been trying to adapt the SimpleNavigation from 
> https://tw-scripts.github.io/Yazd/#macro%2Fsimple-navigation.
> I wanted to be able to cycle thru all childrenTiddler with the same 
> parentTiddler but I can only cycle thru all tiddler.
>
> I have a testTW up on http://magnus.test.tiddlyspot.com/.  All tiddler 
> have a *parent*-field with value no 1 or no 2, and a *relation*-field 
> with value parent, child or grandchild. I would like to be able to cycle 
> from one child to the next child or grandchild with the same parent.
>
> I bet it is super-simple but I think I tried all combination my tired 
> brain can think of. Hope a tiddlywikier out there can help me :D
>
> Cheers
> Magnus 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/e20863e7-b13f-467e-bca4-b22eb36db03a%40googlegroups.com.