Saq,

Ah, clever. Did not know about these templates.

Will try tomorrow.

Thanks for your help.

BobJ

---------------
Dr Bob Jansen
The Cultural Conversations project 
Turtle Lane Studios Pty Ltd trading as the Australian Centre for Oral History
122 Cameron St, Rockdale NSW 2216, Australia 
Ph (Korea): +82 10-4494-0328 
Ph (Australia) +61 414 297 448 
Resume: http://au.linkedin.com/in/bobjan 
Skype: bobjtls 
KakaoTalk: bobjtls 
http://www.cultconv.com 

 In line with the Australian anti-spam legislation, if you wish to receive no 
further email from me, please send me an email with the subject "No Spam"

> On 17 Sep 2020, at 22:56, Saq Imtiaz <saq.imt...@gmail.com> wrote:
> 
> You can further simplify things a lot by using custom view templates, so you 
> don't need to manually call each macro etc in each artwork tiddler and each 
> person tiddler.
> 
> For example, to get the same code applied to what you see for each Artworks 
> tiddler,  create a tiddler with this content and give it the tag 
> $:/tags/ViewTemplate:
> 
> <$list filter="[all[current]tag[Artworks]]" variable=null>
> 
> <img src={{!!artwork_url}}>
> 
> 
> {{!!artwork_title}}, {{!!artwork_medium}}, {{!!artwork_size}}, 
> {{!!artwork_yearofcreation}}
> 
> 
> ''This artwork has been exhibited in the following exhibitions''
> 
> 
> <$macrocall name="is_exhibited_by" artwork_id={{!!artwork_id}} />
> 
> 
> ''This artwork has been consigned in the following consignments''
> 
> 
> <$macrocall name="consigned_to" artwork_id={{!!artwork_id}} />
> 
> 
> ''This artwork has been purchased by'' 
> 
> 
> <<is_purchased_by {{!!artwork_id}} >>
> 
> </$list>
> 
> The very first list widget in that code determines which tiddlers have that 
> template applied to them.
> 
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/tiddlywiki/cOSbp3Km6KU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> tiddlywiki+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/babdeba5-ddb1-466a-a7de-595a14b1f101o%40googlegroups.com.

-- 
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/29A78999-37C2-4BFF-AF23-48824244026C%40gmail.com.

Reply via email to