Thanks! Worked like a charm!
On Friday, June 9, 2017 at 2:03:00 PM UTC-4, Mark S. wrote:
>
> You need some way to convey to the template whose party you want to report
> on. You could rewrite it as a global macro and then invoke it with
> <<guestlist "MomsBirthday">>.
>
> Another approach is to set a field to select the celebration you want. For
> this example, I'm assuming you have:
>
> title: Mom's Birthday
> whose: MomsBirthday
> text: {{||GuestListTemplate}} (with other text and templates)
>
> then your GuestListTemplate would look like
>
> <$list filter="[tag[Guest]tag{!!whose}]">
>
> <$view field="name"/>
> </$list>
>
> HTH
> Mark
>
> On Friday, June 9, 2017 at 7:29:11 AM UTC-7, Nathan Holden wrote:
>>
>> So I'm not sure if there's something I should have been trying to search
>> here, but here's my concern.
>>
>> I've got a static format I want to output, but I want to be able to
>> maintain separate lists, and trying to use a template somewhere in there as
>> well. I'm awfully new to this, so I'm sorry if this is super obvious.
>>
>> So for an example, say we're throwing two parties, which we use as tags:
>> JohnsBirthday, MomsBirthday
>>
>> Then we have five tiddlers:
>>
>> Title: Dad
>> Tags: JohnsBirthday, MomsBirthday, Guest
>> Name: Father
>>
>> Title: Sarah
>> Tags: JohnsBirthday, MomsBirthday, Guest
>> Name: Sarah
>>
>> Title: Karen
>> Tags: MomsBirthday, Guest
>> Name: Karen
>>
>> Title: JohnsFriend
>> Tags: JohnsBirthday, Guest
>> Name: Redd
>>
>> Title: New TV
>> Tags: MomsBirthday, GiftIdea
>> Name: n/a
>>
>> Then we want to apply the template, for ALL cases of Guest...
>>
>> Title: GuestListTemplate
>>
>> Here's who will be coming to the party:
>>
>>
>> <$list filter="[tag[Guest]tag[x]">
>>
>> <$view field="name"/>
>> </$list>
>>
>>
>> Then, you would have two more tiddlers, which would include the full
>> output of the template. So instead of code, I'm going to include the
>> intended output
>>
>> Title: Mom's Party
>> Body:
>>
>> Gift Ideas:
>>
>>
>>
>> New TV
>>
>> Here's who will be coming to the party:
>>
>>
>>
>> Father
>> Sarah
>> Karen
>>
>>
>> Title: John's Party
>> Body:
>>
>> Gift Ideas:
>>
>>
>> Here's who will be coming to the party:
>>
>> Father
>> Sarah
>> Redd
>>
>>
>> Somehow, I want to be able to pass the tag JohnsParty or MomsParty to
>> GuestListTemplate, so that I can avoid rewriting any more code than
>> necessary.
>>
>> Is this doable?
>>
>
--
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/98eff91f-1043-41a6-8ed7-e3a1cbb1ca8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.