[tw5] Re: [TW5] How to Transclude all tiddlers with a tag

2020-06-10 Thread Geoff Tothill
Eric,

Thanks for taking the time to answer this in so much detail, again, it's 
given me not only a solution but something to learn too.

I'm going to make those changes and I'll report back.  I wonder why this 
workaround isn't in the core?  There is probably a consequence that I wont 
see until I start playing with it though.

What I love about Tiddlywiki is that there always seems to be several ways 
of achieving a functional result in a creative way.

Thanks again, I'll let you know how I get on.

Cheers,

Geoff.

On Tuesday, June 9, 2020 at 9:48:35 PM UTC+1, Eric Shulman wrote:
>
>
>
> On Tuesday, June 9, 2020 at 1:01:07 PM UTC-7, Geoff Tothill wrote:
>>
>> It works perfectly, but I have discovered a problem with my grand plan, 
>> which I should have predicted.
>> Many of the tags are repeated in the new tiddler, as they are 
>> transcluded, and when one is clicked, all the others also produce drop 
>> downs of their associated tiddler titles.
>> Is there any way of stopping that behaviour on a per tiddler basis so 
>> that the tags displayed by your filter code are not clickable.  Or even, at 
>> a push, all tags globally are rendered non clickable?
>>
>
> There *is* a workaround that allows the tag popups to be displayed 
> individually... but it's a subtle bit of a trick.  First... a little 
> technical background info:
>
> The tag pill popup is defined in the *$:/core/ui/TagTemplate* shadow 
> tiddler, and uses this line to control when it is displayed
> <$reveal state=<> type="popup" 
> position="below" animate="yes" class="tc-drop-down">
> Note the use of <> in the $reveal state parameter.  The 
> qualify macro (see https://tiddlywiki.com/#qualify%20Macro) *"returns a 
> unique string that encodes its position within the widget tree, as 
> identified by the stack of transcluded tiddlers that lead to that 
> position."*  Thus, the result of the <> macro returns the same 
> value for all items shown in the same tiddler.  To force each tag pill 
> occurrence gets a uniquely qualified state value, we need that value to be 
> calculated from a different position on the "stack of transcluded 
> tiddlers".  We can achieve this by splitting the tiddler content into two 
> tiddlers so that we render the tag pill from a different tiddler.
>
> Here's what you need to do:
>
> 1) Rewrite the previous version of the code like this:
> <$list filter="[tag[... your tag here ...]]">
>__<$link />__
><$list filter="[tags[]]" variable="currentTag">
>   {{||ShowTagPill}}
>
><$transclude mode="block"/>
> 
>
> Note how
> <$macrocall $name="tag" tag=<> />
> has been replaced with a transclusion of a separate "ShowTagPill" tiddler
> {{||ShowTagPill}}
>
> 2) Define the "ShowTagPill" tiddler, containing just the previous 
> $macrocall
> <$macrocall $name="tag" tag=<> />
>
> That's it.  Now, when the "tag" $macrocall is invoked, it will be from a 
> different position in the transclusion stack, resulting in a different -- 
> and unique <> value for that tag pill.
>
> The effect is that clicking on one tag pill will only open the popup for 
> that instance of the tag pill, and will no longer open the popup for ALL 
> occurrences of the same tag pill.
>
> Hopefully, this explanation wasn't too confusing!...Give it a try and let 
> me know how it goes.
>
> enjoy,
> -e
>
>
>

-- 
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/9794c424-ecab-47a2-8d8f-076137b6d45do%40googlegroups.com.


[tw5] Re: [TW5] How to Transclude all tiddlers with a tag

2020-06-09 Thread Geoff Tothill
Hi Eric,

It works perfectly, but I have discovered a problem with my grand plan, 
which I should have predicted.

Many of the tags are repeated in the new tiddler, as they are transcluded, 
and when one is clicked, all the others also produce drop downs of their 
associated tiddler titles.

Is there any way of stopping that behaviour on a per tiddler basis so that 
the tags displayed by your filter code are not clickable.  Or even, at a 
push, all tags globally are rendered non clickable?

Again, any pointers would be very much appreciated,

Geoff.


On Tuesday, June 9, 2020 at 2:51:31 PM UTC+1, Eric Shulman wrote:
>
> On Tuesday, June 9, 2020 at 6:05:05 AM UTC-7, Geoff Tothill wrote:
>>
>> I need to transclude a relatively large number of tiddlers and display 
>> the tags in the transcluded content wrapped in their graphical form 
>> (lozenges).
>> This should give me a list of the titles of all tiddlers tagged with a 
>> primary tag as well as displaying the transcluded tiddlers tags - in the 
>> form of lozenges.
>>
> Effectively I want to do this to use tags as status indicators for each of 
>> the transcluded tiddlers and display that in a list.
>>
>
> Give this a try:
> <$list filter="[tag[...primary tag goes here...]]">
>__<$link />__
><$list filter="[tags[]]" variable="currentTag">
>   <$macrocall $name="tag" tag=<> />
>
><$transclude mode="block"/>
> 
>
> * The outer $list finds all tiddlers with the "primary tag".  Then, for 
> each matching tiddler:
> * The next line shows the title of the current tiddler (as an underlined 
> link)
> * The inner $list get all the tags for the current tiddler
> * The $macrocall inside the inner list invokes the "tag" macro, which 
> shows the tag "pill" for each tag found
> * The blockquote (which is outside of the inner list) transcludes the 
> content of the current tiddler
>
> let me know how it goes...
>
> enjoy,
> -e
>
>

-- 
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/ba3ef1a8-a951-4625-a104-25c4935e3443o%40googlegroups.com.


[tw5] Re: [TW5] How to Transclude all tiddlers with a tag

2020-06-09 Thread Geoff Tothill
Eric,

Wow! Thanks so much for such an amazingly quick reply.  I just tried it and 
I think its going to be exactly what I was trying to achieve.

Also, its going to give me something to unpick and learn from.

Thanks again, it is much appreciated.

Cheers

Geoff.

On Tuesday, June 9, 2020 at 2:51:31 PM UTC+1, Eric Shulman wrote:
>
> On Tuesday, June 9, 2020 at 6:05:05 AM UTC-7, Geoff Tothill wrote:
>>
>> I need to transclude a relatively large number of tiddlers and display 
>> the tags in the transcluded content wrapped in their graphical form 
>> (lozenges).
>> This should give me a list of the titles of all tiddlers tagged with a 
>> primary tag as well as displaying the transcluded tiddlers tags - in the 
>> form of lozenges.
>>
> Effectively I want to do this to use tags as status indicators for each of 
>> the transcluded tiddlers and display that in a list.
>>
>
> Give this a try:
> <$list filter="[tag[...primary tag goes here...]]">
>__<$link />__
><$list filter="[tags[]]" variable="currentTag">
>   <$macrocall $name="tag" tag=<> />
>
><$transclude mode="block"/>
> 
>
> * The outer $list finds all tiddlers with the "primary tag".  Then, for 
> each matching tiddler:
> * The next line shows the title of the current tiddler (as an underlined 
> link)
> * The inner $list get all the tags for the current tiddler
> * The $macrocall inside the inner list invokes the "tag" macro, which 
> shows the tag "pill" for each tag found
> * The blockquote (which is outside of the inner list) transcludes the 
> content of the current tiddler
>
> let me know how it goes...
>
> enjoy,
> -e
>
>

-- 
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/221e11da-9ed7-4874-afe1-c7c2959d4e21o%40googlegroups.com.


[tw5] Re: [TW5] How to Transclude all tiddlers with a tag

2020-06-09 Thread Geoff Tothill
Thanks to everyone who has contributed to this thread - it seems popular!

I have a slightly different requirement if anyone can help me with it.

I need to transclude a relatively large number of tiddlers and display the 
tags in the transcluded content wrapped in their graphical form (lozenges).

This should give me a list of the titles of all tiddlers tagged with a 
primary tag as well as displaying the transcluded tiddlers tags - in the 
form of lozenges. Effectively I want to do this to use tags as status 
indicators for each of the transcluded tiddlers and display that in a list.

Does anyone know if this is possible?

Thanks in advance!

Geoff.

On Saturday, October 3, 2015 at 12:43:29 AM UTC+1, Nolan wrote:
>
> Reading through this discussion with Jeremy 
> https://github.com/Jermolene/TiddlyWiki5/issues/121  it sounds as though 
> I should be able to transclude the content of multiple tiddlers based on 
> their tags using the following 
>
> <$list filter="[tag[myTag]]">
>> <$view field="text" format="wikified"/>
>> 
>>
>>
> I've tried this a number of times using that exact syntax (I created a 
> couple of tiddlers with a "myTag" tag) and all I'm getting is the plain 
> text contents of the tiddlers, nothing appears to be wikified.  I'm sure 
> there is something basic I'm missing.  Any help would be appreciated.
>
>

-- 
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/b3a585dd-40af-4c0b-9db8-c6b2b35060e6o%40googlegroups.com.


[tw5] Re: TiddlyWiki on SharePoint - Real world Application

2020-06-09 Thread Geoff Tothill
Hi Tony,

I wondered how you were getting on with this project. I also had a need to 
use tiddlywiki on a corporate (read Office 365) SharePoint server and find 
in its current iteration it works pretty well.

Im using stand alone tiddlywiki files renamed as .aspx and these launch in 
a full frame rather than being wrapped in SharePoints controls.

I occasionally get a XMLHTTP 500 error on save, which is annoying. I 
wondered if you had seen the same thing?  I wonder if it may be due to 
conflicting saves?

Hope it is going well.  This really is a very pervasive use of tiddlywiki 
on SharePoint in a corporate environment.  Versioning on SharePoint also 
makes it very robust.

All the best,

Geoff.


On Friday, February 15, 2019 at 6:04:51 AM UTC, TonyM wrote:
>
> Folks,
>
> I thought I would just share something with you that may encourage some of 
> you.
>
>
>- I have a Consultancy contract with a Client for whom I believe 
>TiddlyWiki could provide a very good solution.
>- They have asked me to proceed. 
>- It is exciting because this is the first time I will be paid to 
>develop a Tiddlywiki
>- I have explored and confirmed I can deliver this on top of 
>SharePoint in Office 365
>
> Here are some basic details of my approach
>
>- Single File Tiddlywiki in a SitePages Library
>- It loads very quickly
>- Check out the Wiki file to the administrator, no one else can save 
>over it - Serial editors only
>- Only the administrator who has it checked out can save back to the 
>library
>- The Wiki can be opened with the "#tiddler" in the URL so links to 
>the wiki will have the desired landing tiddler for different users
>- I will place links to the wiki for different purposes in different 
>places Like, Lookup, Check personal details, administer etc...
>
> Minor limitations
>
>- Autosave will trigger errors if another change triggers a subsequent 
>save before the first has completed (takes a few minutes in background)
>- One editor at a time, serial editors only, Ok for this business case.
>
>
> I still have a few challenges, 
>
>- One will be to ensure users without save privileges do not try and 
>save, and avoid throwing an error.
>   - Perhaps this will be reversed, no one can save, the admin will 
>   open a special way that engages saving
>- Another will be for a separate wiki as a Form, whose tiddlers can be 
>imported into the main wiki
>- It would be nice if the viewer access could indicate when an update 
>has being saved under it and suggest a reload.
>
> I plan some special features which I will share if there is an interest, 
> Indicated by your response in this thread.
>
>- Lists with selectable columns, sort and (Drop down) filters
>- Generate PDF documents from templates
>- Generate CSV Exports of data for distribution by excel
>- Generate curated TiddlyWiki's for placement on client Intranet
>- Lists that detect they have being "abridged" with updated data
>- All the new item templates, forms, lists and reports you would 
>expect of a database application and front end.
>- Possible integration with other systems.
>
> Of course I am confident I can do this or I would not have commited, yet I 
> may need to seek support of the community, but rest assured I will give 
> back in greater measure.
>
> 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/be3b3199-9e2c-4bc9-9523-69b5aaf00603o%40googlegroups.com.


[tw5] Re: TW5: just a <> search box

2020-05-17 Thread Geoff Tothill
Thanks Matt,

Much appreciated. My mistake somewhere. I will revisit this afternoon.

Have a good afternoon,

Geoff.

On Sunday, May 17, 2020 at 1:25:18 PM UTC+1, Mat wrote:
>
> Geoff Tothill wrote:
>>
>> I made the change and this seems to give me 1 as the count despite the 
>> number of actual results returned :-(
>>
>
> Doing this on tiddlywiki.com I get the result *17*:
>
> title: foo
> text: important
>
> title: test
> text:
> \define aaa()
> <$set name="resultCount" value={{{ [!is[system]search{$(searchTiddler)$}
> count[]] }}} >
> <>
> 
> \end
>
> <$set name=searchTiddler value=foo>
> <>
> 
>
>
> <:-)
>
>>

-- 
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/e3e827dc-f706-49b6-9354-617cf74cc800%40googlegroups.com.


[tw5] Re: TW5: just a <> search box

2020-05-17 Thread Geoff Tothill
Thanks Matt,

I made the change and this seems to give me 1 as the count despite the 
number of actual results returned :-(

Thanks for looking that this,

G


On Sunday, May 17, 2020 at 11:58:36 AM UTC+1, Mat wrote:
>
> Geoff
>
> Since that was written, new filter ops have been added, including the 
> count[] filter op.
> I think the following should work:
>
> <$set name="resultCount" value={{{ 
>> [!is[system]search{$(searchTiddler)$}count[]] }}} >
>>
>
> <:-)
>
>>

-- 
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/c5c61be3-9386-4edf-ad2f-6fb70993e2ca%40googlegroups.com.


[tw5] Re: TW5: just a <> search box

2020-05-17 Thread Geoff Tothill
Hi Jed / Dave,

Sorry to resurrect this old thread, but its in regard to your code that 
allows a search box to be placed in a tiddler, which is very useful.

I have installed your macro and all works as expected except for the number 
of matches indicator. I'm assuming it takes its value from this filter, but 
either is not updated or the filter is wrong in my context?:

<$set name="resultCount" value="""<$count 
filter="[!is[system]search{$(searchTiddler)$}]"/>""">
{{$:/language/Search/Matches}}

Is this something that could be easily fixed?

Cheers and thanks in advance

Geoff.


On my version of TW5 all works as described (using the macro version from 

On Monday, July 9, 2018 at 10:18:49 AM UTC+1, Jed Carty wrote:
>
> I made a macro version of this and posted it here: 
> https://www.ooktech.xyz:8443/Public#%24%3A%2Fmacros%2FForums%2FSearchBar
>
> I am hoping to start using that wiki to put examples made from answers 
> here on the forum. It is on a server running the online version of Bob (I 
> haven't released it yet, I will soon) and hopefully I will be able to give 
> other people editing access to a few public wikis so I won't be the only 
> maintainer of it, if that is ok with the community here.
>
> Dave,
>
> I hope it is ok that I used your example, I listed you as the author and 
> linked to this thread as the motivation in the demo tiddler here: 
> https://www.ooktech.xyz:8443/Public#JustSearch
>

-- 
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/641f4002-bbf7-4664-9289-c800237d5f71%40googlegroups.com.