Hi, I'm using a Info-Wiki at work comprising 1 master-TW and some 40+ 
slave-TW using SharedTiddlersPlugin (1). Every slave-TW has 6 tiddler with 
its own, unik content, SiteSubTitle with the name of the section using it 
and 5 with the tag to fetch from master-TW (includeList and a few fET-s 
(2). For example if the section "Motala" the SiteSubTitle is "Klinisk kemi 
Motala" and in the other 5 tiddler the tag "Motala" is used, everthing else 
is the same, fetched from master-TW.

Is it possible to have only one tiddler containing the data "Motala" and a 
expression using that tiddler-data in all other?

/Magnus

(1) http://yakovl.bplaced.net/TW/STP/STP.html/#SharedTiddlersPlugin
(2) example
<<forEachTiddler
 where
 'tiddler.tags.contains("Motala") && ! tiddler.tags.contains("Trash")'
 sortBy
 'store.getValue(tiddler,"modified")'
 descending
    script '
        window.fetItemsPerPage = 15;

        function getHeader(context,count) {
            if (!window.fetStartIndex || window.fetStartIndex < 0)
                window.fetStartIndex = 0;

            // ensure not to page behind the last page
            if (window.fetStartIndex >= count)
                window.fetStartIndex = 
Math.min(Math.max(window.fetStartIndex-window.fetItemsPerPage,0),count-1);

            createTiddlyButton(context.place,"<",null,
                    function(e) {
                        window.fetStartIndex -= window.fetItemsPerPage;
                        refreshElements(document.getElementById("sidebar"));

                    });
            createTiddlyButton(context.place,">",null,
                    function(e) {
                        window.fetStartIndex += window.fetItemsPerPage;
                        refreshElements(document.getElementById("sidebar"));

                    });

            var startNo = window.fetStartIndex+1;
            var endNo = 
Math.min(count,window.fetStartIndex+window.fetItemsPerPage);

            return " ( "+startNo+" - "+endNo+ " av "+ count + " 
anteckningar )\n\n";
        }
    '

    write
            '(index >= window.fetStartIndex) && (index < 
window.fetStartIndex + 15) ? "* [["+tiddler.title+"]]<<br$)) 
"+tiddler.modifier+"\n" : ""'

        begin
            'getHeader(context,count)'
>>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to