CollapsedTiddlersPlugin - How to Activate?

8 views
Skip to first unread message

SteveM

unread,
Aug 7, 2009, 3:59:28 PM8/7/09
to TiddlyWiki
I imported Eric Shulman's Navigation package including
CollapsedTiddlersPlugin and CollapsedTemplate. I saved and reloaded
the TW, but I can't figure out how to activate the Collapse
functionality.

Any Help?

Thanks,

SteveM

Mike

unread,
Aug 7, 2009, 7:23:00 PM8/7/09
to TiddlyWiki
Sounds like you are using a custom toolbar, or not using
ToolbarCommands (see your view template)
you will need to add the macros manually,

Hope that helps !

Mike

SteveM

unread,
Aug 8, 2009, 7:47:12 AM8/8/09
to TiddlyWiki
Mike,

Thanks. About adding the Macros, in this crawl-walk-run world of
mine, can you explain to me how to do one?

Then I can figure out the generality

SteveM

wolfgang

unread,
Aug 8, 2009, 9:35:06 AM8/8/09
to TiddlyWiki
In the CollapsedTemplate at TiddlyTools you'll find the following
line:

<span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'></span>
</span>

- where [[ToolbarCommands::CollapsedToolbar]] embeds the row
'CollapsedToolbar' of the table in the 'ToolbarCommands' shadowed
tiddler for every collapsed tiddler. There you'll also find the
command for the regular ViewTemplate for displaying the collapse
command for a tiddler in regular view mode:

collapseTiddler

Which you have to add to your ToolbarCommands shadowed tiddler. If the
ToolbarCommands aren't embedded within your ViewTemplate you can add
'collapseTiddler' directly to the ViewTemplate. And if a systemTheme
would be in use, to the ViewTemplate or ToolbarCommands embedded from
there.

Shadowed tiddlers you'll find in the right hand side under the 'More'
and 'Shadowed' tabs.

Regards..

SteveM

unread,
Aug 8, 2009, 12:11:55 PM8/8/09
to TiddlyWiki
wolfgang,

Thanks for the advice.

Forgive me for being dense. I read that you are telling me to simply
add collapseTiddler to the ViewToolbar line of the ToolbarCommands
Shadow Tiddler. I did that and the "fold" menu item appeared on the
View menu. However when activated the Tiddler did fold but the View
menu disappeared and a Macro error was generated, "Error while
executing macro <<tiddlerIcons>>: No such macro exists"

Can you walk through another step to fix that?

Steve

wolfgang

unread,
Aug 8, 2009, 2:15:33 PM8/8/09
to TiddlyWiki
> Forgive me for being dense.

No reason to apologize.

> However when activated the Tiddler did fold but the View
> menu disappeared and a Macro error was generated, "Error while
> executing macro <<tiddlerIcons>>: No such macro exists"
>
> Can you walk through another step to fix that?
>

tiddlerIcons macro error is produced by the following lines in the
CollapsedTemplate, because you haven't TiddlerIconsPlugin installed:

<span class='title'>
<span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
<span macro='view title'></span>
</span>

.. try deleting this.

Eric Shulman

unread,
Aug 8, 2009, 2:16:32 PM8/8/09
to TiddlyWiki
> Forgive me for being dense.  I read that you are telling me to simply
> add collapseTiddler to the ViewToolbar line of the ToolbarCommands
> Shadow Tiddler.  I did that and the "fold" menu item appeared on the
> View menu.  However when activated the Tiddler did fold but the View
> menu disappeared and a Macro error was generated, "Error while
> executing macro <<tiddlerIcons>>: No such macro exists"
>
> Can you walk through another step to fix that?

The CollapsedTemplate from TiddlyTools has been customized to also
include a call to the <<tiddlerIcons>> macro defined by
TiddlerIconsPlugin. You can remove this by changing this:
-------------
<span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'></span>
<span class='title'>
<span class='floatleft' macro='tiddlerIcons' style='cursor:auto !
important;'></span>
<span macro='view title'></span>
</span>
--------------------
to just this:
--------------------
<span class='toolbar' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'></span>
<span class='title' macro='view title'></span>
--------------------

You will also need to add a new row to the 'slice table' definition in
ToolbarCommands... First, copy the ViewToolbar row and name the new
row "CollapsedToolbar". Then, in the value for CollapsedToolbar ,
replace the 'collapseTiddler' command keyword with 'expandTiddler'.
This will provide the same toolbar menu as the when in view mode, but
with "fold" replaced by "unfold"


enjoy,
-e

SteveM

unread,
Aug 8, 2009, 2:48:24 PM8/8/09
to TiddlyWiki
Eric & wolfgang,

Thanks! I got it to work.

But hah! The Collapsed View menu is aligned left. I.e., Left of the
Tiddler title

How to push it back right?

SteveM

Eric Shulman

unread,
Aug 8, 2009, 2:56:51 PM8/8/09
to TiddlyWiki
> But hah!  The Collapsed View menu is aligned left.  I.e., Left of the
> Tiddler title

Normally, I add this to my StyleSheet:
.toolbar { float:right; }

alternatively, you could specify the style inline in the ViewTemplate:

<span class='toolbar' style='float:right' macro='toolbar
[[ToolbarCommands::CollapsedToolbar]]'></span>

enjoy,
-e

SteveM

unread,
Aug 9, 2009, 8:28:26 AM8/9/09
to TiddlyWiki
e-

Perfect!

Danke,

SteveM
Reply all
Reply to author
Forward
0 new messages