If your template tiddler is like this:

<$list filter="[all[current]has[template]]">
<$transclude tiddler={{!!template}}/>
</$list>

It will transclude the tiddler stored in the template field of any tiddler 
that has a 'template' field. 

--Mark

On Wednesday, November 29, 2017 at 2:18:57 PM UTC-8, Diego Mesa wrote:
>
> Hey Mario,
>
> That makes sense - I can conceptually see how to accomplish this by having 
> a header and footer "template" that only gets included in Research Journal 
> entries. 
>
> I was just wondering if something like this is possible via transclusion, 
> or templating. Something like a field: 
>
> template: Research Journal Template
>
> And ever tiddler that has that field will get "stylized" by that template 
> tiddler. 
>
> On Wednesday, November 29, 2017 at 4:08:21 PM UTC-6, PMario wrote:
>>
>> Hi Diego, 
>>
>> IMO you can split it into 3 parts. 
>>
>> title: header
>> tag: $:/tags/ViewTemplate
>> list-before: $:/core/ui/ViewTemplate/body
>>
>> Your stuff above the tiddler text. 
>> <hr>
>>
>> and
>>
>> title: footer
>> tag: $:/tags/ViewTemplate
>> list-after: $:/core/ui/ViewTemplate/body
>>
>> <hr>
>> Your stuff below the tiddler text. 
>>
>>
>> The problem is, that this is visible for every tiddler. 
>>
>> If you don't want that you can do this for the footer and the header.
>>
>> <$list filter="[all[current]tag[Journal]]">
>>
>> title: footer
>> tag: $:/tags/ViewTemplate
>> list-after: $:/core/ui/ViewTemplate/body
>>
>> <hr>
>> Your stuff below the tiddler text. 
>>
>> </$list>
>>
>>
>> Which will show the stuff only, if a tiddler is tagged "Journal"
>>
>>
>> have fun!
>> mario
>>
>

-- 
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/803a072d-bef3-473e-8a78-3687d4cf02bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to