... the plot thickens. The tweak below is what I used to achieve the
following objective:
For all tiddlers tagged "Locked", do the following:
1) in view mode offline the tiddler toolbar displays just the "close"
and "edit" buttons.
2) in view mode online the tiddler toolbar displays just the "close"
button.
It works fine with Firefox, but Explorer (IE7 and IE8) renders a red
highlighted "Error in macro <<hideWhenTag>>" in place of the Locked
tag. What is the problem(s) with my code?
I know this is not the most elegant code, but simpler things had
failed so I was going to settle for inelegance when I realized that
the code does not work in IE at all.
I have marked with <!-- and --> delimiters the bits that IE complains
about. Once commented out (as below) the code works well in IE. It
works in Firefox either way.
!ViewTemplateToolbar
<!--{{{-->
<div class='toolbar'>
<!-- <span macro="showWhen [[tiddler.tags.contains('Locked') ||
window.location.protocol=='file:']]"> -->
<!-- <span macro="showWhen window.location.protocol=='file:'"><span
macro='toolbar editTiddler'></span></span> -->
<!-- <span macro="showWhenTagged Locked"><span macro='toolbar
closeTiddler'></span></span> -->
<!-- <span macro="hideWhenTagged Locked"> -->
<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 closeTiddler'></span>
</div>
<!--}}}-->
The above is an attempt to tweak the code in MptwTheme.
Any help will be greatly appreciated.
Patrick.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---