Shiraz is a small TW5 plugin contains several macros, stylesheets, templates, snippets and acts as a starter kit. Some of its features are given below
<$range tiddler={{!!title}} field="priority" min="0" max="0.30" default=".01" increment=".01"/>
Mohammad,I went to Shiraz to understand how to make use of it. At present I see really nice results but they come from "weighty" tiddlers with a lot of code within them.Personally I would be more inclined to use a macrocall widget wrapped inside a list to source say header and text from tiddlers. The trick is then finding a way to set a number of columns but infinite rows.One use case I have is I have a set of tiddlers, with a link field and icon. I would love to display a N column set of card-column-border which would get the icon, color caption (header) and description to populate the card.
<div class="card-deck">
<$list filter="[tag<currentTiddler>">
<div class="card border-primary mb-3" style="max-width: 21rem;">
<div class="card-header">{{!!title}}</div>
<div class="card-body text-primary">
<span class="h5 card-title">{{!!modifer}}</span>
<p class="card-text">{{!!description}}</p>
</div>
</div>
</$list>
</div>
Actualy there is a need for a generic solution to handle tiddler titles this way, even if css has a method so I am working on that.
Something like a recursive process that lists the first n then passes the rest to itself.
Regards
Tony
<div class="card-columns">
<$list filter="[tag<currentTiddler>]"><div class="card border-primary mb-3" style="max-width: 21rem;"> <div class="card-header">{{!!title}}</div> <div class="card-body text-primary"> <span class="h5 card-title">{{!!modifer}}</span>
<p class="card-text">{{!!text}}</p> </div></div></$list></div>
This work for me
<div class="card-columns"><$list filter="[tag<currentTiddler>]"><div class="card border-primary mb-3" style="max-width: 21rem;"><div class="card-header">{{!!title}}</div><div class="card-body text-primary"><span class="h5 card-title">{{!!modifer}}</span><p class="card-text">{{!!text}}</p></div></div></$list></div>
There was a typo in the first $list widget check the filter.
Mohammad,Thanks for that. When you say template what are you referring to? I was thinking ultimately to use the list widgets template attribute,