Hi all

On Friday morning I woke up with energy for the first time in a couple 
weeks, at least, and had several epiphanies, most of which had to do with 
TiddlyWiki. I then went to work yesterday (Fri) and today (Sat) and came up 
with an easier way to use TiddlyWiki to publish a large wiki-like web of 
static htmls. Here are a couple things I learned along the way:

*1. Flipping title field and showname field*

The thought occurred to me that I could add another field to my tiddlers, 
which I called showname. I tagged it $:/tags/ViewTemplate, and pasted it 
high up in the list field of $:/tags/ViewTemplate. Then I removed the 
$:/tags/ViewTemplate tag from $:/core/ui/ViewTemplate/title.

What does this do? In edit mode, I use the title field to paste the file 
name for the static html to be produced from this tiddler. That way when I 
export to static html, the filename is what shows up in the prompt that 
appears to ask me where to save the file, so I don't need to go back and 
rename the saved file. I use the showname field for the title I want the 
user to see when viewing the static (and for me when viewing the tiddler in 
the standalone TW). The added advantage to this is that if I change the 
tiddler 'title', I don't need to change all the links in other tiddlers 
that link to this file. They still link to the filename in the title field.

*2. Toggling edit stylesheet and publish stylesheet*

One thing that has happened to me in the past is that when creating a 
tiddlywiki for publishing that is more like a true wiki, with lots of 
hyperlinks, is that I find it hard to mark my progress - In tiddler A want 
to add links to tiddler B that doesn't exist yet, but I am not ready to 
actually create tiddler B and add content. I just want to focus on tiddler 
A.

So I created two almost identical stylesheets. The editing stylesheet shows 
yellow highlights I put around unfinished items, shows dark orange text I 
use to leave myself notes about what to do next, what sources to 
investigate, etc, and shows missing links in gray. The publishing 
stylesheet has a 'display none' CSS for the highlights and my orange notes, 
and displays missing links as the same color as the body text.

*3. Buttons for links*

Since the links are to filenames, I need pretty links for everything. So I 
created buttons, one to wrap filenames with a pretty external link to a 
file in the same folder (I use one folder per topic / TW file), and another 
button for pretty external links to files in a different folder.

*4. Display macro*

I thought the display macro would not work with static html, but it works 
great, so I use it to condense longer indexes of links. Very nice tool. 

I am using these statics at our main site (http://www.giffmex.org) and at a 
new site I am experimenting with for Spanish materials at 
http://articulos.giffmex.org.

This system is pretty fast, and basically will turn my articulos site into 
a large wiki like site of interlocking statics, without needing to know 
node.js or github. (maybe I should call it giffipedia...)

Just wanted to float these ideas around in case they help anyone who might 
also be using or wanting to use TW for static site generation, but who 
don't want to learn node.js and Github.

Blessings

Dave


-- 
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/a1c1e00f-e92b-4b2b-a352-dc0737442396%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to