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/75c15f97-ed3c-454c-9c7a-7449448bfd02o%40googlegroups.com.

Reply via email to