Notes on Shiraz ...

293 views
Skip to first unread message

TiddlyTweeter

unread,
Mar 16, 2021, 4:07:13 AM3/16/21
to TiddlyWiki
Shiraz is a great plugin!!!

It practically helps beginners with IN-Tiddler tools of large range & utility. ++

It raises some issues that i think are interesting about how to handle CSS.

But before I get into that I'd be interested in IF others found it useful too??

TT


unread,
Mar 17, 2021, 1:24:48 PM3/17/21
to TiddlyWiki
Sure. There are a number of interesting macros. I don't use an awful lot of them but even then, many proved useful in getting to create my own based on pre-existing examples.

To be honest, Shiraz seems particularly entincing as far as dynamic tables as concerned but I'm holding back from going down that rabbit hole yet until I emerge from a number of others...

History Buff

unread,
Mar 17, 2021, 2:48:12 PM3/17/21
to TiddlyWiki
I've used the dynamic tables macro a lot and have found it incredibly useful.  The other features of Shiraz I really haven't used that much although I have dabbled. Dynamic tables alone is worth adding Shiraz in my opinion.

Damon

springer

unread,
Mar 17, 2021, 4:28:39 PM3/17/21
to TiddlyWiki
Absolutely, dynamic tables are a game-changer. I'm not *exactly* a beginner, but I appreciate that Shiraz (and also the utility plugin) saves me from certain learning curves so that I can focus on other ones.

Today's possible-because-of-Shiraz challenge: figure out how to configure a tiddler (tagged with $:/tags/ViewTemplate) such that:

For each tiddler, if it currently has no content in body but has stuff tagged to it, THEN I see a dynamic table with rows for its "children" and columns for title, caption, plus any other fields mentioned in its "columns" field. (Or, a variation: Any tiddler with children gets such a ViewTemplate component at bottom, but it's regularly tucked into a compact details-type dropdown.)

:)

-Springer

Mohammad Rahmani

unread,
Mar 18, 2021, 2:38:37 PM3/18/21
to tiddl...@googlegroups.com
Hi Springer,



On Wed, Mar 17, 2021 at 11:58 PM springer <springer...@gmail.com> wrote:
Absolutely, dynamic tables are a game-changer. I'm not *exactly* a beginner, but I appreciate that Shiraz (and also the utility plugin) saves me from certain learning curves so that I can focus on other ones.

Thank you and very proud to hear Shiraz is a game changer!

Today's possible-because-of-Shiraz challenge: figure out how to configure a tiddler (tagged with $:/tags/ViewTemplate) such that:

For each tiddler, if it currently has no content in body but has stuff tagged to it, THEN I see a dynamic table with rows for its "children" and columns for title, caption, plus any other fields mentioned in its "columns" field. (Or, a variation: Any tiddler with children gets such a ViewTemplate component at bottom, but it's regularly tucked into a compact details-type dropdown.)


So, do you like to have such a viewTemplate or you have already one and you use it now?
If you like I can make one for you!

 
:)

-Springer

On Tuesday, March 16, 2021 at 4:07:13 AM UTC-4 TiddlyTweeter wrote:
Shiraz is a great plugin!!!

It practically helps beginners with IN-Tiddler tools of large range & utility. ++

It raises some issues that i think are interesting about how to handle CSS.

But before I get into that I'd be interested in IF others found it useful too??

TT


--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/764bc106-c10f-4f35-9645-413d3481f137n%40googlegroups.com.

springer

unread,
Mar 21, 2021, 5:29:24 PM3/21/21
to TiddlyWiki
Mohammad, a ViewTemplate add-in (with simple dynamic table for items tagged-here) would be awesome!  Basically, I end up copy-pasting a basic dynamic table into virtually every tiddler whose only role is to serve as a parent/overview dashboard for its tagged underlings.

Another "stretch" task would stretch dynamic tables to work with an input-oriented filter: Say, there's an input box where if students enter their initials, all tiddlers where those initials are listed (in list field) would show up. (For me, this is better than creating a separate tiddler for each student for felt-privacy reasons (plus my own laziness with many students); it's better if they can "call up" their own data by entering initials in an input field, without having an easy way to feel like everyone's data is for easy viewing; I understand that if the data is "in there" a savvy student can find it.) I started tinkering with this task, and then realized it was not going to be quick.

In general, I'm struggling a bit with whether and how I can feed variables into a dynamic table macro; I can force a column header to display a string like "next_level" (using tobibeer's setvars, or even by inserting {{!!custom}} in the field list and setting that field up with next_level), BUT the column won't actually show the next_level field contents for the tiddler rows. Perhaps it's generally true of any <<macro>> that it's hard to get the guts of the macro to work with anything that requires calculation from outside the macro? Or else I'm just missing some insight about how to inject a desired variable into the dynamic tables' macro syntax.

-Springer

History Buff

unread,
Mar 21, 2021, 6:24:04 PM3/21/21
to TiddlyWiki
Springer,

I've used transclusion and a ViewTemplate to successfully add dynamic tables to every tiddler tagged with a certain tag. It's worked extremely well for me so far. Is this kind of what you were talking about?

springer

unread,
Mar 21, 2021, 9:00:23 PM3/21/21
to TiddlyWiki
Hi History Buff, certainly related! 

Two small differences are: (1) the filter would be more complex (not tiddlers *with* a specific tag, but tiddlers which exist only/primarily as placeholders in the "tag tree"); (2) I was hoping to see whether some of the column headers could be specified in a field. (My most frequent task, with dynamic tables, is going into edit mode to tweak which columns appear. Since I already use Mohammad's view-fields plugin, it's super-easy to update the values in a field "on the fly".) I'm not sure that the columns list *can* be drawn in dynamic fashion from a field, but that's what I was hoping Mohammad would speak up about.

-Springer

Mohammad Rahmani

unread,
Mar 22, 2021, 2:03:44 AM3/22/21
to tiddl...@googlegroups.com
Hi Springer,

Yes, the filter is a rather complex one, but the idea of having dynamically create contents is great!
I submit a ticket on GitHub and will go through it to create an example for this!

See https://github.com/kookma/TW-Shiraz/discussions/20 and feel free to add more explanations.

Best wishes
Mohammad


Mohammad Rahmani

unread,
Mar 22, 2021, 2:04:57 AM3/22/21
to tiddl...@googlegroups.com
Hi History Buff,
 A nice example you provided. I will add this to Shiraz documentation.

Best wishes
Mohammad


Mohammad Rahmani

unread,
Mar 24, 2021, 2:48:53 AM3/24/21
to tiddl...@googlegroups.com
Hi Josiah,

Shiraz styles are a subset of awesome Bootstrap 4. So you should have a great flexibility to create amazing and very beautiful elements (e.g cards, buttons, badges, images, tables,...)
You can even later use Shiraz to create Static Website with a killing UI ;-)

The bad news is many users know Shiraz as a dynamic table generator, but dynamic tables are only a very small part of Shiraz! Shiraz makes you to be much more productive (I say more than 1000 times) with respect to Tiddlywiki empty.html. Shiraz for Tiddlywiki is like Bootstrap for the web world! and here Shiraz is not only a tiny safe css framework, but also it has many other TW based tools. Look at FAQ, list-search, searchable tables, double badges,..

Shiraz also has good documentation and a wealth of examples.

So, all in all, I think Shiraz on its own is sufficient to be used with Tiddlywiki to create many types of final products.



Best wishes
Mohammad


--
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 tiddlywiki+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages