Argh: "(as tag pills)" "(and show them as tag pills)"
Should have been: "...as links in dropdown menus..." Cheers Den mandag den 12. maj 2014 10.50.13 UTC+2 skrev Måns: > > Hi Katie > > I've made a rough example of what I have in mind...where the main sections >> like 'Acts' and 'Characters' are something that is always present, but when >> clicked on would make a drop-down menu that houses the sub-sections of Acts >> 1, 2, 3, etc. Then, when a subsection is clicked on, it would drop down the >> specific tiddlers shown and poof, you'll be able to access that bit that >> you need. >> > > > You might try this: > > {{Act||$:/core/ui/TagTemplate}} {{Character||$:/core/ui/TagTemplate}} > > It will give you two tag pills with dropdowns for all tiddlers tagged with > Act and Character. > > > If you want to have tag pills for every Act or Character showing what > tiddlers are tagged with one of those > here's one way of doing it: > > Create a tiddler called eg. Index. > > Copy paste this code: > > <$list filter="[!has[draft.of]tag[Act]tag[Act]!prefix[$]] > -[[Act]]">{{!!title||$:/core/ui/TagTemplate}}</$list> >> >> <$list filter="[!has[draft.of]tag[Character]tag[Character]!prefix[$]] >> -[[Character]]">{{!!title||$:/core/ui/TagTemplate}}</$list> >> >> > Now you have a tag pill for each tiddler tagged with Act or Character. > > If you click a tag pill called eg Act1 you'll get a drop down showing > links to all tiddlers tagged with Act1. > > Explanation of the code: > > [!has[draft.of]tag[Act] means that a tiddler tagged with Act which is in > editmode (a draft) will not appear in the list (as a tag pill). > > tag[Act] will fetch all tiddlers tagged with Act (and show them as tag > pills). > > !prefix[$]] means that any tiddler which has "$" as a prefix in their > title won't get into the list. > > -[[Act]] means that if the tiddler called Act is tagged with Act it won't > show up in the list (As a tag pill - If you want it to appear- simply > delete this expression "-[[Act]]" from the code). > > {{!!title||$:/core/ui/TagTemplate}}: > "$:/core/ui/TagTemplate" is the template used for tag pills > "!!title" is the title of each listed tiddler. > "||" means that each listed tiddler ("!!title") will be using the tag pill > template ("$:/core/ui/TagTemplate") as a template. > > Hope this helps. > > Enjoy > > Cheers Måns Mårtensson > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/d/optout.