\define mylist(f)
- <$list filter="[tag[explanation]$f$]">
- <$view field="title">
Error:
Filter error: Missing [ in filter expression
\define mylist(f)
Error:
Filter error: Missing [ in filter expression
Welcome @Shaheen_Merchant
\define mylist(f)
<$list filter="[tag[explanation]]">* <$view field="title"/></$list>
\end
Show us how you call it as well, once I understand what f supposed to be I may make other suggestions.
Note if you want a bulleted list of each listed item an empty l;ine will default to what you seem to want
\define mylist(f)
<$list filter="[tag[explanation]]">
</$list>
\end
<<mylist>>
Hi,
\define mylist(f)
<ul>
<$list filter="[tag[explanation]$f$]">
<li><$view field="title"></$view></li>
</$list>
</ul>
\end
[edited by TW Tones to mark code and make it readable]
Filter error: Missing [ in filter expression
Warm regards
What is the parameter f
?
The filter may be valid if you provide the correct parameter, but I do not know what it is. Otherwise your filter syntax is most likely incorrect. Without more info I can’t help.
\define mylist(f:"sort[]]")
Try this on tiddlywiki.com
\define mylist(f:"sort[created]")
<$list filter="[tag[TableOfContents]$f$]">
</$list>
\end
<<mylist>>
Hi,this the code with javascript. Please check it out.
<!DOCTYPE html>
<html>
<body>
<h2>Use JavaScript to Change Text</h2>
<p>This example writes "Hello JavaScript!" into an HTML element with id="demo":</p>
<p id="demo"></p>
<script>
document.getElementById("demo").innerHTML = "Hello JavaScript!";
</script>
</body>
</html>
Warm regards.
It is better to ask in the open forum as any one can answer.
Your cant simply add javascript with the script tag. It needs to be installed with a module type set, saved and reloaded. This is a security measure and because tiddlywiki is a platform that maintains currency
You can use one of the raw tags for it to be defined in the html file. Again save and reload but your cant just call at.
Its is better to ask what you want and see if someone has the answer.
As Tony points out. You cannot directly use SCRIPT tags in TW for security reasons. If HTML elements are directly used like you do in your example the whole thing gets sanitized. It’s not intended to work that way.
In TW wikitext it’s OK to use HTML elements like UL, LI and so on, but you should avoid to use <html>
and <body>
because it can cause problems.
What do you intend to insert for the “f” variable?
IMO instead of code that does not work, you should try to tell us in plain text, what you try to achieve. So we may be able to tell you how you can achieve it
Example
suppose , i have a tiddler with title ‘Tiddler A’ and caption : A . I want to open Tiddler A by tagging its caption to some other Tiddler.Is it possible? If possible please provide the code.
Greetings,
The simple answer is no, captions can not be used as tags, but here you are asking how todo something that you may not need to do.
You need to explain what you want to do, what is the outcome you want? without half trying to solve it with tiddlywiki, since you are still learning. Why cant you tag it with the title name? Why do you want to use the caption?