Thanks for the reply Mark. 

Wouldnt that just create a list of all tiddlers that have `alink` field? I 
just want to display the current tiddlers `alink` field as its footer - if 
it has one. 

On Monday, October 16, 2017 at 12:02:00 PM UTC-5, Mark S. wrote:
>
> You might use a <$list> widget to display/not display rather than a widget.
>
> In the next release there might be a tool that can split on pipes using 
> regular expressions. AFAIK, there is no native filter that can do that now.
>
> Instead, consider having a co-field that's formatted as a list field. Then 
> if you have field blink: peter paul mary, your code might look like:
>
> <$list filter="[has[alink]]">
> ~TiddlyWiki!<br/>
> Has aliases: <$list filter="[list[!!blink]]"><$view field=title/>, </$list>
> </$list>Enter code here...
>
> Good luck,
> Mark
>
> On Friday, October 13, 2017 at 3:07:35 PM UTC-7, Diego Mesa wrote:
>>
>>
>> Hello all,
>>
>> I am using the excellent alink macro from Tobias Beer: 
>> https://tobibeer.github.io/tb5/#alink
>>
>> I use it to give people nicknames. For example I have a tiddler called: 
>> `My Full Name` I give that tiddler a field called `alink` with the value 
>> `nickName`. Elsewhere I can then say: `<<a: nickName>>` to link to this 
>> tiddler. 
>>
>> Now, I want to include a footer to tiddlers that says: 
>>
>> `''Note:'' This tiddler is aliased to: ____`. 
>>
>> I was following this post: 
>> https://groups.google.com/forum/#!msg/tiddlywiki/Q5OJ2KllSUw/g5NNO2B9CgAJ 
>>
>> to have a custom footer. I created a new Tiddler called `TiddlerFooter` 
>> and tagged it with: `$:/tags/ViewTemplate`. I then tried to use the reveal 
>> widget as:
>>
>> ```
>>
>> <$reveal type="match" state="!!jeremy" text="tiddlywiki">
>> ~TiddlyWiki!
>> </$reveal>
>>
>> ```
>>
>> This works fine. But now I want to show my text only if the field `alink` 
>> exists and is non-empty (filled with anything). How can I accomplis that? I 
>> tried the following:
>>
>> ```
>> <$reveal type="match" state="!!alink">
>> ~TiddlyWiki!
>> </$reveal>
>> ```
>>
>> but that did not work. Also, I am wondering if its possible with in the 
>> reveal widget, to then parse the text of that field, splitting by the `|` 
>> character, and display a list of comma separated values. For example, if 
>> the tiddler has the field: `alink: |nick1|nick2|nick3|`, I would like to 
>> show on that Tiddler a footer that says:
>>
>> "Note": This tiddler has the following aliases: nick1, nick2, nick3
>>
>> Thank you!
>> Diego
>>
>>
>>
>

-- 
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 post to this group, send email to [email protected].
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/1fc2126a-ebbe-4839-9b2b-794bea5763a5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to