Hi TwWizards I've copied and changed some code that Stephan Hradek made for quick tagging in viewmode.
A filtered list of tag pills is shown in tiddlers tagged with "teacher" (lærer) and another filtered list of tag pills is shown in tiddlers tagged with "task" (opgave). What I need is to change the standard tag pills in those tiddlers (tagged with "lærer" and "opgave") to removable ones.. I guess its a matter of reusing code from the EditViewTemplate - however I don't know what to copy (and what not) - and I don't know how to supress the standard tag pills from view from those tiddlers which will use the removable tag pills. http://opgavefordeling.tiddlyspot.com See tiddlers: TagLærerOpgave and TagOpgaveLærer . Also checkout any task (opgave) or teacher (lærer). <https://lh4.googleusercontent.com/-0CA4Zo3vzA0/U1dP0h22gKI/AAAAAAAAFFM/ZjnZduGhe5E/s1600/TaskChooser.png> <https://lh4.googleusercontent.com/-UO3DLtlWpDQ/U1dP8EK0OuI/AAAAAAAAFFU/EU95cetIsiI/s1600/taskchoosercode.png> TagLærerOpgave Måns <http://opgavefordeling.tiddlyspot.com/#M%C3%A5ns>1 second ago $:/tags/ViewTemplate <$list filter="[is[current]tag[lærer]] -[[lærer]]"> ---- @@float:right; |borderless small|k |>| [[Opgaver]] |h | <$link to="Lærere"><a href={{!!billede}} target="_blank"><img src={{!!billede}} width="50%" height="auto"class="tw-image" title={{!!billede}}/></a></$link> |<$list filter="[is[current]tagging[]tag[opgave]sort[title]]">{{!!title||$:/core/ui/TagTemplate}}</$list> | @@ Vælg opgaver fra kategorierne //(klik på dem)//: <$fieldmangler> <$linkcatcher set="$:/NewTagName" setTo="" message="tw-add-tag"> !!!Små: <$list filter="[tag[opgave]tag[SmåOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !!Mellem: <$list filter="[tag[opgave]tag[MellemOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !Store: <$list filter="[tag[opgave]tag[StoreOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> </$linkcatcher> </$fieldmangler> </$list> <$list filter="[is[current]tag[lærer]] -[[lærer]]"> ---- @@float:right; |borderless small|k |>| [[Opgaver]] |h | <$link to="Lærere"><a href={{!!billede}} target="_blank"><img src={{!!billede}} width="50%" height="auto"class="tw-image" title={{!!billede}}/></a></$link> |<$list filter="[is[current]tagging[]tag[opgave]sort[title]]">{{!!title||$:/core/ui/TagTemplate}}</$list> | @@ Vælg opgaver fra kategorierne //(klik på dem)//: <$fieldmangler> <$linkcatcher set="$:/NewTagName" setTo="" message="tw-add-tag"> !!!Små: <$list filter="[tag[opgave]tag[SmåOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !!Mellem: <$list filter="[tag[opgave]tag[MellemOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !Store: <$list filter="[tag[opgave]tag[StoreOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> </$linkcatcher> </$fieldmangler> </$list>TagLærerOpgave Måns <http://opgavefordeling.tiddlyspot.com/#M%C3%A5ns>1 second ago $:/tags/ViewTemplate <$list filter="[is[current]tag[lærer]] -[[lærer]]"> ---- @@float:right; |borderless small|k |>| [[Opgaver]] |h | <$link to="Lærere"><a href={{!!billede}} target="_blank"><img src={{!!billede}} width="50%" height="auto"class="tw-image" title={{!!billede}}/></a></$link> |<$list filter="[is[current]tagging[]tag[opgave]sort[title]]">{{!!title||$:/core/ui/TagTemplate}}</$list> | @@ Vælg opgaver fra kategorierne //(klik på dem)//: <$fieldmangler> <$linkcatcher set="$:/NewTagName" setTo="" message="tw-add-tag"> !!!Små: <$list filter="[tag[opgave]tag[SmåOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !!Mellem: <$list filter="[tag[opgave]tag[MellemOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !Store: <$list filter="[tag[opgave]tag[StoreOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> </$linkcatcher> </$fieldmangler> </$list> <$list filter="[is[current]tag[lærer]] -[[lærer]]"> ---- @@float:right; |borderless small|k |>| [[Opgaver]] |h | <$link to="Lærere"><a href={{!!billede}} target="_blank"><img src={{!!billede}} width="50%" height="auto"class="tw-image" title={{!!billede}}/></a></$link> |<$list filter="[is[current]tagging[]tag[opgave]sort[title]]">{{!!title||$:/core/ui/TagTemplate}}</$list> | @@ Vælg opgaver fra kategorierne //(klik på dem)//: <$fieldmangler> <$linkcatcher set="$:/NewTagName" setTo="" message="tw-add-tag"> !!!Små: <$list filter="[tag[opgave]tag[SmåOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !!Mellem: <$list filter="[tag[opgave]tag[MellemOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> ---- !Store: <$list filter="[tag[opgave]tag[StoreOpgaver]] -[all[current]tags[]] -[[opgave]]"> <$link> <$set name="backgroundColor" value={{!!color}}> <span style=<<tag-styles>> class="tw-tag-label"> <$view field="title" format="text"/> </span> </$set> </$link> </$list> </$linkcatcher> </$fieldmangler> </$list> 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.