Hi

My latest take on sliders may be seen here: http://wills.tiddlyspot.com/ 
(documentation tabs of the 'Work in Progess' tiddler.)

Have a look at the code in the 'Using GTD' for the version that transcludes 
the text field of separate tiddlers, and at the 'Journal' tiddler to see 
the version that transcludes fields (could easily be adapted for a data 
dictionary.)

regards

On Sunday, June 1, 2014 11:20:59 AM UTC+2, Rustem wrote:
>
> Wrote slideThis macro today. It transcludes a tiddler as a slider. The 
> tiddler is required to have a field “caption”.
>
> Would be great to modify the macro so it’s using the title if there’s no 
> caption field. If you know how, please help.
>
> Enjoy!
>
> \define tw-wikilinks() no
>
> \define slider(caption,state,text)
> <$reveal type="nomatch" state="$:/state/slider/$state$" text="show">
>
> ;$caption$ <$button class="btn-invisible" set="$:/state/slider/$state$" 
> setTo="show">{{$:/core/images/chevron-right}}</$button>
> </$reveal>
> <$reveal type="match" state="$:/state/slider/$state$" text="show">
>
> ;$caption$ <$button class="btn-invisible" set="$:/state/slider/$state$" 
> setTo="hide">{{$:/core/images/chevron-left}}</$button>
>
> $text$
> </$reveal>
> \end
>
> \define slideThis(tiddler)
> <$macrocall $name=slider caption="<a 
> href='#$tiddler$'>{{$tiddler$!!caption}}</a>" state="$tiddler$" 
> text="{{$tiddler$}}"/>
> \end
>
> ​
>

-- 
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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to