Hi TwWizards

I've tried to make a very simple TopMenu toggler.
It has 3 usable states: none, TopMenu#1 and TopMenu#2. 4'th state is
TopMenu#1+TopMenu#2 which isn't rendered properly... - doesn't really
matter because you don't want two TopMenus at once anyway...

It simply tags the tiddler with content I want  with 'TopMenu' and is
shown in the TopMenu tiddler via fET:
<<forEachTiddler
where
'tiddler.tags.contains("TopMenu")'
write
'""+store.getValue(tiddler,"text")+""'>>

The actual toggling is done with Erics transclusion:
CheckboxToggleTag
<<tiddler CheckboxToggleTag with: TopMenu Menu TopMenu#1>> menu1
and
<<tiddler CheckboxToggleTag with: TopMenu Menu TopMenu#2>> menu2

Have a look here:
http://notestormproject2.tiddlyspot.com/#TopMenu

If you have a better solution - maybe even a working example I would
love to see it..

(I know Morris has something in the pipeline for this kind of
switching content and CSS for almost every element in a TW ... What
I'm looking for is a switch for TopMenu content and CSS only...)

Regards Måns Mårtensson

On 2 Dec., 11:04, Måns <[email protected]> wrote:
> Just realized that I should explain the use of TreeViews
>
> > And forgive me, but I may just be missing the intention of the
> > project, but in a working copy of the (Storm P or "Pstorm"?!) --
> > will all tags be hidden? In the notes you have there at the moment,
> > tags are only visible when editing. Will some tags (for "topics") be
> > visible, and "meta tags" (?) for other purposes be hidden (that would
> > be cool -- I'd like to be able to do that with my tags, divide them
> > into visible tags and "phantom tags" that readers needn't be concerned
> > with. I don't know how to do that. Can tags be tagged (?) to keep them
> > out of the tag box?
>
> The TreeViews *are* showing tagrelations - downwards.
> If you tag a tiddler with "Tree" it will turn into a TreeManager and
> appear beneath the Tree treeview in the MainMenu.
> The title will turn into a TreeView and you can access tiddlers tagged
> with its title..
> Same is true with Projects (they will appear beneath the Projects tree
> in the Mainmenu though) and Topics (they will appear beneath the
> Topics tree in the Mainmenu).
>
> I've added the TagsDB functionality to include or exclude tags from
> the tagger dropdown- read more here:http://notestormproject.tiddlyspot.com/
>
> Regards Måns Mårtensson

--

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