Hi Wim
> Suppose I have 2 tiddlers, one for all the documents, one for all the
> presentations. Each tiddler is divided into parts, *where the name
> contains alle the POSSIBLE departments for that document/presentation*.
>
> *TIDDLER1*
> <part doc_depA_depB_depC> [[itemA1|file:///doc1.doc]] </part> <part
> doc_depA_depB> [[itemB1|file:///doc2.doc]] - [[itemB2|file:///doc3.doc]]
> </part>
> <part doc_depA_depC> [[itemC1|file:///doc4.doc]] -
> [[itemC2|file:///doc4.doc]] </part>
>
> *TIDDLER2*
> <part pres_depA_depB_depC> [[itemA1|file:///pres1.ppt]] </part> <part
> pres_depA_depB> [[itemB1|file:///pres2.ppt]] - [[itemB2|file:///pres3.ppt]]
> </part>
> <part pres_depA_depC> [[itemC1|file:///pres4.ppt]] -
> [[itemC2|file:///pres4.ppt]] </part>
>
> *Now...*
> I would like to "filter" (in a new tiddler) all the docs and/or
> presentations for one department
> like (I know, this doesn't work,and that's my problem):
> forEachTiddler where *part.title.contains("depC")* would give me [[itemA1|file:///doc1.doc]]
> + [[itemC1|file:///doc4.doc]] - [[itemC2|file:///doc4.doc]] +
> [[itemA1|file:///pres1.ppt]] + [[itemC1|file:///pres4.ppt]] -
> [[itemC2|file:///pres4.ppt]] (that is all the doc and all the pres for
> depC!!)
>
> or
>
> forEachTiddler where part.title.contains("pres")&&part.title.contains("depB")
> would give me [[itemA1|file:///pres1.ppt]] + [[itemB1|file:///pres2.ppt]] -
> [[itemB2|file:///pres3.ppt]] (that is all the all the pres for depB!!)
>
I would create a spreadsheet and prepare it to output a csv-file:
title,tags,text,customfield1,customfield2,...
MyTiddler,tag1 [[tag 2]] tag3,"This is ""quoted"" content, with a
comma",value,value,...
MyTiddler2,tag1 [[tag 2]] tag3,"This is ""quoted"" content, with a
comma",value,value,..
Every "MyTiddler" would/should contain a link and/or an iframe for
docs and/or presentations.
Tags would reflect for which departments the content is relevant..
Save the spreadsheet to a csv-file.
Then use Eric's
http://www.tiddlytools.com/#CreateTiddlersFromCSV to
create tiddlers - one tiddler for each content.
(I've used CreateTiddlersFromCSV to create more than 3000 tiddlers in
less than 3 seconds ... it's pretty effective, however you'll need to
prepare the csv-file with correct tags and text content)
Now it should be quite easy to create lists - one for each department,
using the core's list macro.
<<list filter [tag[departmentname]]>> where departmentname is
equivalent to a tagname...
It all boils down to the fact, that you need to tag content and you
can't tag part of a tiddler, however you can tag individual tiddlers
with all kinds of tag combinations - and create all kinds of lists
retrieving tiddler titles or content from tiddlers ....
Good luck...
Cheers Måns Mårtensson