Hi Mat,

went with: 

<div class="columns">
<<column-item "[tag[Table of Contents]]" "[tag[Equation]]">>
</div>

(@@. didn't do anything)

which gives me http://stephenteacher.tiddlyspot.com/#New%20Tiddler

A couple of problems due to my tagging system in that an equation isn't 
always tagged with the top level subject, so stress is tagged under 'stress 
and strain' but not the top level 'Statics'.
The linkability seems to have gone too!

Stephen

On Saturday, 8 June 2019 15:30:58 UTC+1, Mat wrote:
>
> Ste Wilson wrote:
>>
>> So how would I do that then? 
>>
>> If any of its any good for your physics class feel free ;)
>>
>
> Appreciated but my pupils are younger :-)
>
> OK, since I'm dabbling with this just now - here, you could probably use 
> something like this:
>
> \define column-item(filter, subfilter)
> <$list filter="$filter$" variable=subject>
> <span class="column-item">
>    <div class="column-item-heading"><<subject>></div>
>    <$list filter="""$subfilter$ +[tag<subject>]""">
>       <div class="column-item-item">
>          {{!!title}}
>       </div>
>    </$list>
> </span>
> </$list>
> \end
>
> Then you call it all for example like so
>
> @@.columns
> <<column-item "[tag[subject]]" "[tag[Equation]]">>
> @@
>
>
> If you put the code in a separate macro, you could reuse it also for each 
> subject, i.e each subject could be it's own tiddler and then put these in 
> every one of them:
>
> @@.columns
> <$macrocall $name=column-item filter=<<currentTiddler>> subfilter=
> "[tag[Equation]]" />
> @@
>
> ...or, if these equations are a big part of your whole site then you could 
> make a conditional viewtemplate stating that any tiddler tagged subject 
> should show that code just above this row. This way you would not manually 
> have to put that code into every subject tiddler and if you add a new 
> subject tiddler, it will automatically show content.
>
> <:-)
>

-- 
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/523b0c24-954b-45d2-9bc9-79f9ea8145b8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to