tagglyTagging info in viewTemplate '-' by default - how to?

3 views
Skip to first unread message

spacev...@gmail.com

unread,
Jan 24, 2008, 11:11:17 AM1/24/08
to TiddlyWiki
Hi - I'd like to have the section that can be toggled to provides the
tag info by default closed (ie '+'), as opposed to expanded ('-') --
how do I do this?
-Juergen

Ken Girard

unread,
Jan 24, 2008, 10:38:24 PM1/24/08
to TiddlyWiki
In the tagglyTagging plugin your looking for a the following section:

listOpts: {
// the first one will be the default
sortBy: ["title","modified","created"],
sortOrder: ["asc","desc"],
hideState: ["show","hide"],
listMode: ["normal","group","sitemap","commas"],
numCols: ["1","2","3","4","5","6"],
excerpts: ["noexcerpts","excerpts","contents","sliders"]
},

Change the order of hideState to:
hideState: ["hide","show"],

And that will take care of it.
Same for all the other settings. First one is the default.
If you are going to put it on line, please change the plugin name to
something like "TagglyTaggingPlugin-hidden" so that if someone else
copies the modified plugin we have an easy way to know it is not the
standard set up. Might save someone a lot of headaches later.

Ken Girard

On Jan 24, 10:11 am, "spacevult...@gmail.com" <spacevult...@gmail.com>
wrote:

Eric Shulman

unread,
Jan 24, 2008, 11:29:25 PM1/24/08
to TiddlyWiki
On Jan 24, 7:38 pm, Ken Girard <ken.gir...@gmail.com> wrote:
> In the tagglyTagging plugin your looking for a the following section:
> ...
> Change the order of hideState to:
> hideState: ["hide","show"],
> If you are going to put it on line, please change the plugin name to
> something like "TagglyTaggingPlugin-hidden" so that if someone else
> copies the modified plugin we have an easy way to know it is not the
> standard set up. Might save someone a lot of headaches later.

Rather than modifying [[TagglyTaggingPlugin]], you should create a
separate [[TagglyTaggingPluginTweak]] that contains just the one line
of code needed to change the order of the 'hideState' option:

config.taggly.config.listOpts.hideState=["hide","show"];

Tag this tiddler with "systemConfig"... save-and-reload... because
plugins are invoked alphabetically, the [[...Tweak]] code will always
be invoked following the underlying plugin code, overriding the
standard value set by that plugin, without having to modify the
underlying plugin at all!

HTH,
-e
Eric Shulman
TiddlyTools / ELS Design Studios

spacev...@gmail.com

unread,
Jan 25, 2008, 1:36:14 AM1/25/08
to TiddlyWiki
Eric - tried your 'safe' method - here's what I get notified about
when loading
the file:
Error: TypeError: config.taggly has no properties

any ideas?
-J

Eric Shulman

unread,
Jan 25, 2008, 1:49:34 AM1/25/08
to TiddlyWiki


On Jan 24, 10:36 pm, "spacevult...@gmail.com" <spacevult...@gmail.com>
wrote:
> Eric - tried your 'safe' method - here's what I get notified about
> when loading
> the file:
> Error: TypeError: config.taggly has no properties
>
> any ideas?

* Make sure you have TagglyTaggingPlugin installed and working
* Check the spelling AND capitalization of TagglyTaggingPluginTweak...
it MUST be invoked *after* TagglyTaggingPlugin.

HTH,
-e

Ken Girard

unread,
Jan 25, 2008, 6:45:01 AM1/25/08
to TiddlyWiki
Hello Eric,
I got your method to work (and it is the better method as it creates
fewer future headaches), and was reminded of something else.
TagglyTagging 'remembers' the last way it was viewed (if the TW is
saved).
So any tiddlers created before this tweak will still have the tags
visible, as that is the condition the tags were in when the TW was
last saved.
All new tiddlers will have the TagglyTaggin hidden by default.

Ken Girard

spacev...@gmail.com

unread,
Jan 25, 2008, 11:27:36 PM1/25/08
to TiddlyWiki
thanks, guys - had a typo in the tiddler... :-(
I knew about the 'last view' recall, which I use - this just saves
several clicks on new tiddlers etc.

thanks again.
Reply all
Reply to author
Forward
0 new messages