Thank you very much Tony! It works flawlessly. I appreciate the explanation 
too! 

On Monday, July 15, 2019 at 1:05:43 PM UTC+2, TonyM wrote:
>
> Adam,
>
> First your problem.
>
> If you go to https://grosinger.net/tw5-checklist/#ChecklistExample and 
> tag that tiddler with $:/tags/SideBar or alternatively for outside the tabs 
> $:/tags/SideBarSegment
>
>
>    - It will then appear in the sidebar. When using it in the side bar it 
>    fails on enter or + for a new item
>    - The Side bar Differs from when a tiddler is displayed in the "story" 
>    It has no current tiddler.
>    - It appears that The implementation of tw-5 Checklist does not take 
>    account of this case.
>    - I ensured there was a current tiddler set in the checklist tiddler 
>    and it now works
>
> <$tiddler tiddler="ChecklistExample">
> ! My Shopping List
>
>
> [ ] More items
> [ ] Test
> [ ] Milk
> [ ] Eggs
> [x] Bread
>
>
> </$tiddler>
>
> *explain this: "Use the tiddler widget or a list to get a value for 
> current tiddler and it just may solve your problem." in more detail? *
>
> Most widgets default to using or changing the currentTiddler variable
>
> Eg
> <$view field=caption />
> Defaults to currentTidder because I did not provide the tiddler name
>
> Consider this
> <$list filter="[is[current]tagging[]]">
>
> </$list>
> This will identify all the tiddlers tagged by the current one and list one 
> after the other
> It is really saying
>
> <$list filter="[is[current]tagging[]]">
>   <<currentTiddler>><br>
> </$list>
>
> However If I stop the default use of currentTiddler I can only get the 
> result like this.
>
> <$list filter="[is[current]tagging[]]" variable=selectTiddler>
>   <<selectTiddler>><br>
>   <<currentTiddler>><br>
> </$list>
>
>    - I invented the variable selectTiddler
>    - Because I gave it as the variable name it will change to each 
>    tiddler that has the current tagging it.
>    - In this case currentTiddler will remain the value it was previously.
>
> I hope that helps
>
> Regards
> Tony
>
>
>
>
> On Monday, July 15, 2019 at 6:44:17 PM UTC+10, Adam S. wrote:
>>
>> Thanks Tony!
>>
>> Could you explain this: "Use the tiddler widget or a list to get a value 
>> for current tiddler and it just may solve your problem." in more detail? I 
>> looked at these widgets on the official tiddlywiki site but didn't 
>> understand what to do.
>>
>> What I'm experiencing can be recreated (I'm doing exactly this) by simply 
>> adding the $:/tags/SideBar tag to the ChecklistExample tiddler in this 
>> tiddlywiki <https://grosinger.net/tw5-checklist/> and then interacting 
>> with the ChecklistExample in the sidebar. 
>>
>> On Monday, July 15, 2019 at 4:39:05 AM UTC+2, TonyM wrote:
>>>
>>> Adam,
>>>
>>> Unless there is a bug the solution is most likely wikitext not 
>>> javascript. 
>>>
>>> In the side bar currentTiddler is not set. Since everything in the side 
>>> bar can be the current tiddler if you get what I mean.
>>>
>>> Use the tiddler widget or a list to get a value for current tiddler and 
>>> it just may solve your problem.
>>>
>>> If not return here with more info, show us the content of your sidebar 
>>> tiddler etc...
>>>
>>> Regards
>>> Tony
>>>
>>>
>>> On Monday, July 15, 2019 at 7:01:05 AM UTC+10, Adam S. wrote:
>>>>
>>>> Hi all!
>>>> When I try to use this <https://grosinger.net/tw5-checklist/> plugin 
>>>> in the SideBar, it gives me a javascript error.
>>>> I'm no good with javascript, can anyone tell me what causes this and if 
>>>> it is fixable? (and perhaps how to fix it)
>>>> TypeError: $tw.wiki.getTiddler(...) is undefined
>>>>
>>>> Mohammad's great new todolist plugin works in the sidebar, but doesn't 
>>>> have a clear all button that I need. Also, I don't like the look of 
>>>> spreadsheet for my simple to-do list. Makes it more intimidating :D For a 
>>>> more complicated list its great though.
>>>>
>>>> Thank you!
>>>>
>>>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/b75f9206-661a-4cf0-a8ba-8e672d2ee5b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to