I think you need a specialty filter or javascript macro. Attached is my 
quick attempt that you can play with. ABSOLUTELY make sure you have a 
backup!! Then drag and drop the attached file into your TW, making sure the 
green import bar shows up, and then selecting "import" for the "Date Test" 
and javascript macro. There's also a tiddler tagged with "Saturday" to 
demonstrate that it works today (but it may already be Sunday in other 
parts of the world). After importing, save and RELOAD to make the 
javascript macro active.

The code I used to test the javascript macro ("dow" is for Day Of Week) is 
as follows:

<$set name=field value="created" >
<$list filter="[all[tiddlers]tag<dow>]">
<$transclude/>
</$list>
</$set>


 Note that the variable "field" needs to be set to the date field you want 
to track -- "created" in this case.  The reason I pass the value this way 
is because, for reasons I'm never able to understand, passing the value as 
a parameter results in a return value that is not seen by other objects, 
such as filters. 

Anyway, as they say, "It worked once."

Good luck!
Mark




On Saturday, August 20, 2016 at 8:29:30 AM UTC-7, CPorter9 wrote:
>
> (TW5)
>
> I want to transclude a tiddler into a new journal tiddler, and I want the 
> transcluded tiddler to change depending on what day the journal tiddler was 
> created on.
>
> All the tiddlers that I want transcluded are already created, they just 
> need to show up in the new journal tiddler depending on the day the journal 
> tiddler was created. They have a tag for a day (Monday, Tuesday, etc.).
>
> I think this means I first need to find out what day it is when the new 
> journal tiddler is created, then find the tiddler that has the tag for that 
> day, then transclude it into the new journal entry. 
>
> (which also means I need to modify the new journal template to include 
> this filter operation, but that's another hurdle to jump.)
>
> I cannot find enough examples of using filters in this way to figure out 
> how to do this.
>

-- 
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/7d0ca16f-c5b5-4c53-a799-06added09ed5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Attachment: day-of-week-kit.json
Description: application/json

Reply via email to