I should add that I am using the MPTW template. MPTW has a tiddler
titled MptwTheme in which most of the layout is defined. There is a
MptwUserConfigPlugin in which the user can modify certain properties
of the theme. I have not been able to modify the tiddler toolbar
layout by attempting to override MptwTheme with my
MptwUserConfigPlugin custom changes. Other users report similar
difficulties. I should add here that editing ToolbarCommands does
nothing either.

Reluctantly I have therefore modified the MptwTheme directly.

I can then edit the tiddler toolbar to some extent. I have selected a
minimal layout by editing the ViewTemplateToolbar and EditTemplate sub-
tiddlers (or whatever that's called) that are inside MptwTheme. I have
done the following:

In MptwTheme, replace ViewTemplateToolbar and EditTemplate by the
following lines:

!ViewTemplateToolbar
<!--{{{-->
<div class='toolbar'>
        <span macro="showWhenTagged systemConfig">
                <span macro="toggleTag systemConfigDisable . '[[disable|
systemConfigDisable]]'"></span>
        </span>
        <span macro="showWhenTagged systemTheme"><span macro="applyTheme"></
span></span>
        <span macro="showWhenTagged systemPalette"><span
macro="applyPalette"></span></span>
        <span macro="showWhen tiddler.tags.contains('css') || tiddler.title
== 'StyleSheet'"><span macro="refreshAll"></span></span>
        <span style="padding:1em;"></span>
        <span macro='toolbar editTiddler'></span>
</div>
<!--}}}-->

!EditTemplate
<!--{{{-->
<div class="toolbar" macro="toolbar +saveTiddler -cancelTiddler
deleteTiddler"></div>
<div class="title" macro="view title"></div>
<div class="editLabel">Title</div><div class="editor" macro="edit
title"></div>
<div macro='annotations'></div>
<div class="editLabel">Content</div><div class="editor" macro="edit
text"></div>
<div class="editLabel">Tags</div><div class="editor" macro="edit
tags"></div>
<div class="editorFooter"><span macro="message
views.editor.tagPrompt"></span><span macro="tagChooser"></span></div>
<!--}}}-->

This achieves one objective: it removes the effect of triggering an
edit after double-clicking.

This achieves another objective: it removes the long string of toolbar
commands I don't need such as "close others" or "new journal".

But it still leaves a small "edit" box in all the tiddlers. I would
like to select a subset of tiddlers and make them un-editable. Is it
possible to tag certain tiddlers with LockedTiddler and have them NOT
display the edit box?

I tried inserting the following line into ViewTemplateToolbar inside
of MptwTheme, but it didn't work.

<span macro="showWhenTagged LockedTiddler"><span macro='toolbar'></
span></span>

Will gladly accept your suggestions,

Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to