2024-01-17 22:41:41 +00:00
|
|
|
title: MultiWikiServer Administration
|
|
|
|
|
2024-01-19 11:03:58 +00:00
|
|
|
\procedure createBag(name)
|
|
|
|
|
|
|
|
\procedure completion-createBag()
|
|
|
|
\import [subfilter{$:/core/config/GlobalImportFilter}]
|
|
|
|
<$action-log msg="In completion-createBag"/>
|
|
|
|
<$action-log/>
|
|
|
|
\end completion-createBag
|
|
|
|
|
|
|
|
<$action-sendmessage
|
|
|
|
$message="tm-http-request"
|
|
|
|
url=`/wiki/$(name)$/bags/$(name)$`
|
|
|
|
method="PUT"
|
|
|
|
oncompletion=<<completion-createBag>>
|
|
|
|
/>
|
|
|
|
\end createBag
|
|
|
|
|
|
|
|
\procedure createBagButton(name)
|
|
|
|
<$button class="">
|
|
|
|
<$transclude $variable="createBag" name={{$:/state/NewBagName}}/>
|
|
|
|
{{$:/core/images/new-button}}
|
|
|
|
</$button><span class="tc-btn-text"><$text text="Create a new bag:"/></span><$edit-text tiddler="$:/state/NewBagName" tag="input"/>
|
|
|
|
\end createBagButton
|
|
|
|
|
|
|
|
\procedure createRecipe(name)
|
|
|
|
|
|
|
|
\procedure completion-createRecipe()
|
|
|
|
\import [subfilter{$:/core/config/GlobalImportFilter}]
|
|
|
|
<$action-log msg="In completion-createRecipe"/>
|
|
|
|
<$action-log/>
|
|
|
|
\end completion-createRecipe
|
|
|
|
|
|
|
|
<$action-sendmessage
|
|
|
|
$message="tm-http-request"
|
|
|
|
url=`/wiki/$(name)$/recipes/$(name)$`
|
|
|
|
method="PUT"
|
|
|
|
oncompletion=<<completion-createRecipe>>
|
|
|
|
/>
|
|
|
|
\end createRecipe
|
|
|
|
|
|
|
|
\procedure createRecipeButton(name)
|
|
|
|
<$button class="">
|
|
|
|
<$transclude $variable="createRecipe" name={{$:/state/NewRecipeName}}/>
|
|
|
|
{{$:/core/images/new-button}}
|
|
|
|
</$button><span class="tc-btn-text"><$text text="Create a new recipe:"/></span><$edit-text tiddler="$:/state/NewRecipeName" tag="input"/>
|
|
|
|
\end createRecipeButton
|
|
|
|
|
2024-01-17 22:41:41 +00:00
|
|
|
<div class="mws-admin-container">
|
|
|
|
<h1>Recipes</h1>
|
|
|
|
<ul>
|
|
|
|
<$list filter="[prefix[$:/state/multiwikiserver/recipes/]]">
|
|
|
|
<li>
|
|
|
|
<a href={{{ [{!!recipe-name}addprefix[/wiki/]] }}} rel="noopener noreferrer" target="_blank">
|
|
|
|
<$text text={{!!recipe-name}}/>
|
|
|
|
</a>
|
2024-01-18 21:48:09 +00:00
|
|
|
<ol>
|
|
|
|
<$list filter="[list<currentTiddler>]">
|
|
|
|
<li>
|
|
|
|
<$text text=<<currentTiddler>>/>
|
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ol>
|
2024-01-17 22:41:41 +00:00
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ul>
|
2024-01-18 21:48:09 +00:00
|
|
|
<div>
|
2024-01-19 11:03:58 +00:00
|
|
|
<<createRecipeButton>>
|
|
|
|
</div>
|
|
|
|
<div>
|
2024-01-18 21:48:09 +00:00
|
|
|
Higher numbered bags take priority if a tiddler with the same title is in more than one bag
|
|
|
|
</div>
|
2024-01-17 22:41:41 +00:00
|
|
|
<h1>Bags</h1>
|
|
|
|
<ul>
|
|
|
|
<$list filter="[prefix[$:/state/multiwikiserver/bags/]]">
|
|
|
|
<li>
|
|
|
|
<$text text={{!!bag-name}}/>
|
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ul>
|
2024-01-19 11:03:58 +00:00
|
|
|
<div>
|
|
|
|
<<createBagButton>>
|
|
|
|
</div>
|
2024-01-17 22:41:41 +00:00
|
|
|
</div>
|