I see that the second line is responsible for the text above the search bar:
\define lingo-base() $:/language/Search/
<<lingo Filter/Hint>>
<div class="tc-search tc-advanced-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus
={{$:/config/Search/AutoFocus}}/>
<$list filter=
"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"
><$transclude/></$list>
</div>
...
It's just a small detail that is not a problem if not possible. But, the
tiddlywiki syntax looks like a Markup language as HTML... Considering that,
is it possible to include conditions? I mean, on the code above it'd be
nice if I could add a condition that relies on the tag used. The pseudocode
would look like:
\define lingo-base() $:/language/Search/
if ( tag === "$:/tags/AdvancedSearch" ) {
<<lingo Filter/Hint>>
}
<div class="tc-search tc-advanced-search">
<$edit-text tiddler="$:/temp/advancedsearch" type="search" tag="input" focus
={{$:/config/Search/AutoFocus}}/>
<$list filter=
"[all[shadows+tiddlers]tag[$:/tags/AdvancedSearch/FilterButton]!has[draft.of]]"
><$transclude/></$list>
</div>
This way I'd only see the text when the tag used is the original one. Is
something like this possible?
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/c6f384c1-44de-40be-8f07-dd876d26612co%40googlegroups.com.