Wow! And thank you for the explanations on how it works.

1) Your code works even if the first line is <$list 
filter="[tag[foo]!sort[title]]">

*2) I ran into a cosmetic snag. Tiddlers with long titles that wrap get 
dropped down a line and indented, making the list look messy. Don't know 
what's causing that.*

*3) Is there a way to make the list of titles look like the output to 
<<list-links "[tag[foo]sort[title]]">> *

On Sunday, November 8, 2020 at 8:26:07 PM UTC+8 Eric Shulman wrote:

> On Sunday, November 8, 2020 at 2:08:47 AM UTC-8, Sapphireslinger wrote:
>>
>> Is there a way to do this?
>>
>> <$list filter="[tag<currentTiddler>!sort[title]]">
>> <h2><$link><$transclude field="title" mode="block"/></$link></h2> *This 
>> line is what I want sliderized.*
>> <$transclude field="text" mode="block"/> *Only want this to show up 
>> (inline) if I click on the above title.*
>> </$list>
>>
>
> Try this:
> <$list filter="[tag<currentTiddler>!sort[title]]">
> <h2>
> <$button class="tc-btn-invisible" >
>    <$text text={{!!title}} />
>    <$reveal state={{{ [[$:/state/slider/]addsuffix<currentTiddler>] }}} 
> type="nomatch" text="show">
>       <$action-setfield $tiddler={{{ 
> [[$:/state/slider/]addsuffix<currentTiddler>] }}} text="show" />
>    </$reveal>
>    <$reveal state={{{ [[$:/state/slider/]addsuffix<currentTiddler>] }}} 
> type="match" text="show">
>       <$action-deletetiddler $tiddler={{{ 
> [[$:/state/slider/]addsuffix<currentTiddler>] }}} />
>    </$reveal>
> </$button>
> </h2>
> <$reveal state={{{ [[$:/state/slider/]addsuffix<currentTiddler>] }}} 
> type="match" text="show">
>    <$transclude field="text" mode="block"/>
> </$reveal>
> </$list>
>
> Notes:
> * $button uses class="tc-btn-invisible" to make it look like regular text
> * $text shows the current title
> * 1st $reveal sets $:/state/slider/NameOfTiddler to "show" when $button is 
> pressed
> * 2nd $reveal deletes $:/state/slider/NameOfTiddler when $button is pressed
> * 3rd $reveal does $transclude when $:/state/slider/NameOfTiddler is set 
> to "show"
>
> enjoy,
> -e
>

-- 
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/166f0323-9616-4f3f-b90e-159f845cc420n%40googlegroups.com.

Reply via email to