[tw5] Re: List with tags and links to topics

2021-07-03 Thread Soren Bjornstad
Generally, the only time you should use an  tag in TiddlyWiki is for 
external links. Otherwise, <$link> makes more sense, as this handles some 
functionality for you, like adding the # and applying appropriate styles if 
the tiddler is missing, a shadow tiddler, etc.

As for why what you did didn't work, this is never valid syntax in 
TiddlyWiki:

attribute="text{{transclusion}}"

Within attributes, transclusions are not evaluated within quotes. Thus, the 
value of an attribute can be either a constant value in quotes, *or* a 
transclusion (<>, {{field}}, or {{{filtered}}}) -- not both. If 
you need to concatenate several things in the value of an attribute, you 
can use either a macro with text substitution:

\define concat() text$(transclusion)$

<$set transclusion={{transclusion}}>
<$widget attribute=<>/>


Or a filtered transclusion:

<$widget attribute={{{ [[text]addsuffix{transclusion}] }}}/>

On Saturday, July 3, 2021 at 10:18:15 AM UTC-5 miket...@gmail.com wrote:

> I love this kind of list I found in the documentation.
> https://i.imgur.com/4Hh7Rcs.jpg
>
>
>
>
>
>
> *<$list 
> filter="[tag[Features]sort[title]]"><>{{||$:/core/ui/ViewTemplate/tags}}*
>
> But I want to be able to click on the headings to navigate. And it just 
> doesn't work (only Camel case on example).
> I tried to put it inside the HTML but it doesn't work.
>
>
> * href="#<>"><> href="#{{!!title}}">{{!!title}}*
>
> Variables <> {{!!title}} are not readable inside the HTML 
> tag <> and no links are received.
>
> https://i.imgur.com/QD3MXR1.jpg

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/114d0bc9-cb08-42a2-a48b-6e2b3a447708n%40googlegroups.com.


[tw5] Re: List with tags and links to topics

2021-07-03 Thread amreus
Could use a link widget...

**




*<$list 
filter="[tag[Features]sort[title]]"><$link/>{{||$:/core/ui/ViewTemplate/tags}}*
 

On Saturday, July 3, 2021 at 11:18:15 AM UTC-4 miket...@gmail.com wrote:

> I love this kind of list I found in the documentation.
> https://i.imgur.com/4Hh7Rcs.jpg
>
>
>
>
>
>
> *<$list 
> filter="[tag[Features]sort[title]]"><>{{||$:/core/ui/ViewTemplate/tags}}*
>
> But I want to be able to click on the headings to navigate. And it just 
> doesn't work (only Camel case on example).
> I tried to put it inside the HTML but it doesn't work.
>
>
> * href="#<>"><> href="#{{!!title}}">{{!!title}}*
>
> Variables <> {{!!title}} are not readable inside the HTML 
> tag <> and no links are received.
>
> https://i.imgur.com/QD3MXR1.jpg

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/2bc3d966-e0c5-4c3f-894a-817af9f9e57cn%40googlegroups.com.