-
Notifications
You must be signed in to change notification settings - Fork 0
OokTech/TW5-TWederBob
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
title: $:/plugins/OokTech/TWederBob/readme ! TWederBob ''TWederBob'' is a plugin for adding some inter-server communication between Bob wikis. Currently it adds one widget: `action-interServerMessage`. ''To install'' this plugin you can drag and drop it into a wiki from https://www.ooktech.xyz:8443/Public#%24%3A%2Fplugins%2FOokTech%2FTWederBob !! action-interServerMessage widget ''Usage'':<br> ``` <$action-interServerMessage url='http://url.com' filter=<<somefilter>> requestType='fetch' fromWiki='FetchWiki' tokenKey='localStorageKey' /> ``` After fetching it will open a tiddler that lists the fetched tiddlers and give you a chance to review what was fetched before finishing the import. If you wish to skip this and import tiddlers without a review set the `resolution` parameter to `force`. A list of the fetched tiddlers (or just the list for `fetchList`) is stored in the //list// field of [[$:/state/TWederBob/importlist]]. Other information is put into the //text// field. !!!Parameters All requests need a `url` and `requestType`. If you are interacting with a server that requires a login you also need to set the `tokenKey` |!Parameter |!Description | |!url |The url of the server. | |!requestType |The type of request. See below for details. | |!filter |The filter that determines the tiddlers to fetch if `requestType=fetch` or the tiddlers to send if `requestType=push` | |!fromWiki |The wiki to pull from if `requestType=fetch` | |!toWiki |The wiki to push tiddlers to if `requestType=push` | |!tokenKey |If you push or pull to/from a wiki that isn't public this is the localStorage key used by the login widget used to log into the remote server. | |!transformFilter |This filter is applied to each of the returned tiddler titles. (optional) | |!pluginName |The plugin to fetch if `requestType=fetchPlugin` | |!fieldList |A space separated list of field names to return if `requestType=fetchList` (optional) | |!resolution |The method to use for resolving conflicts (defualt: `manual`) | |!noPreview |If set to `true` this prevents the import preview and summary tiddler from opening after a fetch. (default: `false`) (optional) | !! Request Types The `requestType` parameter can be of different types and with different inputs: |!Request Type |!Description |!Needed Inputs |!Optional Inputs | |!fetch |This fetches tiddlers from a Bob server that allows fetching. |`fromWiki`, `filter` |`transformFilter`, `tokenKey` | |!fetchList |This gives a list of tiddlers that would be imported by fetching with the current filter. |`fromWiki`, `filter` |`fieldList`, `tokenKey` | |!fetchPlugin |This fetches a plugin from a server setup as a plugin library |`pluginName` |`tokenKey` | |!listPlugins |This lists the plugins available on a server setup as a plugin library | |`tokenKey` | |!push |This pushes tiddlers to a server setup to accept pushes. |`toWiki`, `filter` |`tokenKey` | |!pushPlugin |This pushes a plugin to a server acting as a plugin library to add the plugin to the library. |`pluginName` |`tokenKey` | `fromWiki` and `toWiki` use the name of the wiki that Bob uses, the same thing that is listed under the wiki listing. <br> `filter` is used to filter tiddlers, for fetching it is used on the wiki tiddlers are fetched from, for pushing it picks tiddlers to push from the current wiki. <br> `pluginName` is the name of the plugin to fetch if the `requestType` is `fetchPlugin`, it is the name of the local plugin to push if `requestType` is `pushPlugin` !! Conflict Resolution There are there options for conflict resolution: * `manual` every imported tiddler is saved in a temporary tiddler so you can accept or reject each one * `conflict` if the imported tiddler would not overwrite an existing tiddler if is created, otherwise if the imported tiddler is different than the existing tiddler it is added to the list of conflicting tiddlers presented to be accepted or rejected * `force` all imported tiddlers are saved regardless of if they overwrite an existing tiddler or not.
About
A plugin to let a wiki fetch and push tiddlers to Bob servers
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published