Hi all,

I am all knew to tiddlywiki and facing the same problem. I try to use the 
task example from the TW5 Homepage and enhance it, so that right next to 
each task I can see the tags attached to this tiddler.

Maybe my understanding of what excactly "different transclusions mean" is 
all wrong and i can't get it fixed.


<$list filter="[!has[draft.of]tag<currentTiddler>!tag[done]sort[created]]">

<$checkbox tag="done"> <$link to={{!!title}}><$view 
field="title"/></$link></$checkbox>
<$list filter="[all[current]tags[]sort[title]] +[remove[Task todo]] " 
storyview="pop">
  {{||$:/core/ui/TagTemplate}}
</$list>

</$list>

Isn't what I am doing in the inner list (the {{||}} call of the tag 
template a seperate transaclusion for each single tag? Or am I on the wrong 
track here somehow?


 Nevertheless I tried to build on Jeremys comment, that the tag template in 
difference to the tab macro does not have the ability to define a custom 
state.
I tried my own version of the tag template and enhanced the macros with a 
custom state parameter to be passed in, but all I accomplished was, that 
the click on my tags
did not give any result at all. No popup, nothing.

// my altered version of the tag-body-inner macro
[...]

\define tag-body-inner(colour,fallbackTarget,colourA,colourB*, state*)
<$set name="foregroundColor" value=<<contrastcolour target:"""$colour$""" 
fallbackTarget:"""$fallbackTarget$""" colourA:"""$colourA$""" 
colourB:"""$colourB$""">>>
<$set name="backgroundColor" value="""$colour$""">
<$button popup=*<<qualify "$state$">>* class="tc-btn-invisible 
tc-tag-label" style=<<tag-styles>>>
<$transclude tiddler={{!!icon}}/> <$view field="title" format="text" />
</$button>
<$reveal state=<<qualify "$:/state/popup/tag">> type="popup" 
position="below" animate="yes"><div class="tc-drop-down"><$transclude 
tiddler="$:/core/ui/ListItemTemplate"/>
<hr>
<$list filter="[all[current]tagging[]]" 
template="$:/core/ui/ListItemTemplate"/>
</div>
</$reveal>
</$set>
</$set>
\end
[...]


The state parameter I am passing in is build in a own macro, concatenated 
from a the tiddler title and the current tag

\define createTag(title, tag)
<$set name="id" value="$:/state/popup/tag$title$$tag$">
<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}} 
 state=$(id)$/>
</$set>
\end

Am I completely off track here?

Regards,
Thomas



-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/61a37e9c-d2b9-4962-ab4f-3060af1527a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to