The recent information from Jeremy on "
filtered saving" has given me hope to fulfill a long time dream; To be able to use one TW as a publishing central for my other TWs. You should probably read that linked post before the following.
I always imagined a central TW and other "surrounding" ones into which you exporting individual tiddlers from the central TW. While this, I guess, would be the optimal workflow, the "filtered saving" instead can allow to have several "Publish buttons" in the central TW, one for each of the peripheral TWs. It is IMO not perfect in that you fully overwrite the previous version of the peripherals which means you can't edit them individually (you must use the central one) and it probably makes it trickier (but still doable) to use different layouts etc for them. (It should be doable by including all layouts (CSS?) in the central one and then filter to save only the relevant one).
Despite the drawbacks, I think a "central TW" could be very cool and I hope to do this for some TWs on tiddlyspot! I.e so that a tiddlyspot has multiple Publish buttons that to directly upload filtered variants to other tiddlyspots of mine. For instance you could run parallel blogs in this way, turning to different audiences and in the central TW simply tag posts with the relevant blogname.
...but I have little clue how to do this and would really appreciate help.
<:-)
---------------------------------------------------------------------------------------------------------------------
Below follows some code for the publish button and the "save to tiddlyspot" tiddler.
The filtered saving Publish button
<$button>
<$action-sendmessage $message="tm-download-file" $param="<title-of-your-template>" filename="index.html"/>
Publish
</$button>
Content of the "save to tiddlyspot" in Ctrlpanel;
\define lingo-base() $:/language/ControlPanel/Saving/
\define backupURL()
http://$(userName)$.tiddlyspot.com/backup/
\end
\define backupLink()
<$reveal type="nomatch" state="$:/UploadName" text="">
<$set name="userName" value={{$:/UploadName}}>
<$reveal type="match" state="$:/UploadURL" text="">
<<backupURL>>
</$reveal>
<$reveal type="nomatch" state="$:/UploadURL" text="">
<$macrocall $name=resolvePath source={{$:/UploadBackupDir}} root={{$:/UploadURL}}>>
</$reveal>
</$set>
</$reveal>
\end
! <<lingo TiddlySpot/Heading>>
<<lingo TiddlySpot/Description>>
|<<lingo TiddlySpot/UserName>> |<$edit-text tiddler="$:/UploadName" default="" tag="input"/> |
|<<lingo TiddlySpot/Password>> |<$password name="upload"/> |
|<<lingo TiddlySpot/Backups>> |<<backupLink>> |
''<<lingo TiddlySpot/Advanced/Heading>>''
|<<lingo TiddlySpot/ServerURL>> |<$edit-text tiddler="$:/UploadURL" default="" tag="input"/> |
|<<lingo TiddlySpot/Filename>> |<$edit-text tiddler="$:/UploadFilename" default="index.html" tag="input"/> |
|<<lingo TiddlySpot/UploadDir>> |<$edit-text tiddler="$:/UploadDir" default="." tag="input"/> |
|<<lingo TiddlySpot/BackupDir>> |<$edit-text tiddler="$:/UploadBackupDir" default="." tag="input"/> |
<<lingo TiddlySpot/Hint>>