I have a similar usecase.
I collect cases and articles published by doctors and make them seperate tiddlers with the name of the case or article as the tiddler's title. I have seperate tiddlers for each doctor also with the doctor's name as that tiddler's title.
I give seperate tags for the each doctor's tiddler based on whether he/she publish article or case.
1. if the doctor publishes articles only, he will be tagged with tag 'Authors' only
2. if the doctor publishes cases only, he will be tagged with tag 'Consultants' only
3. if the doctor publishes both articles and cases, he will be tagged with both tags.
For each case/article by a doctor, i use doctor's name as a
tag. Additionally i add a field for each case/article.
1. if it is an article - 'field name' - 'what' and 'field value' - 'article' is given.
2. if it is an case - 'field name' - 'what' and 'field value' - 'case' is given.
Finally in the tiddler with title of the doctor, I make a list fliter to group the cases and articles under that that doctor seperately. Code i use is given below:
<<tabs tabsList:"[tag[doctors-name]what[case]]" default:"dem/24 news" class:"tc-vertical">>
<<tabs tabsList:"[tag[doctors-name]what[article]]" default:"dem/24 news" class:"tc-vertical">>
Can you suggest how should i modify this code so that it will be automatically added into all doctors tiddlers. I tried to make the code similar to what you suggested in the previous message, but I don't know where to add the field value in that code. Please help.
Similarly I have two tiddlers with title 'Authors' and 'Consultants' in which I need to make a list of the doctors who published articles and cases respectively along with a list of articles/cases under each doctor. I currently TOC code given below for that purpose.
<div class="tc-table-of-contents">
<<toc-selective-expandable "Authors">><<sort by 'title'>>
</div>
<div class="tc-table-of-contents">
<<toc-selective-expandable "Consultants">><<sort by 'title'>>
</div>
But this code will list both cases and articles under each doctor in both 'Authors' and 'Consultants' tiddlers. Can you suggest a better way to list the doctors in Authors and Consultant tiddlers with only their articles or cases being shown depending upon whether its Authors tiddler or Consultants tiddler.