How can i display a list in a slider

110 views
Skip to first unread message

Gunman

unread,
Jul 16, 2015, 4:40:35 AM7/16/15
to tiddl...@googlegroups.com

Hello,
i often use sliders with the global slider macro from Stephan Hradek.
all ok, but i can`t display lists in such a slider....
e.g.
looks so ...


not as in the tiddler...



transclusion...same problem!


what`s the problem?



Jeremy Ruston

unread,
Jul 16, 2015, 7:10:22 AM7/16/15
to TiddlyWiki
Hi Gunman

It would be helpful to see the code that you're using.

It looks as though the problem is that the content of your slider is being parsed in inline mode instead of block mode. That means that it is not recognising the table syntax.

Best wishes

Jeremy.



On Thu, Jul 16, 2015 at 9:40 AM, Gunman <waspw...@gmail.com> wrote:

Hello,
i often use sliders with the global slider macro from Stephan Hradek.

all ok, but i can`t display an lists in such a slider....
e.g.
looks so ...


not as in the tiddler...






what`s the problem?



--
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+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/0895348b-b2bc-4c2f-93cd-99dbaf9f0a8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Gunman

unread,
Jul 17, 2015, 2:43:07 AM7/17/15
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,
here the code...

...of the slider {{plans||slider}}

\define slider(label)
<$button popup="$:/state/$label$" class="btn-invisible tw-slider"><$reveal type="match" text="" default="" state="$:/state/$label$">&#x229E;</$reveal><$reveal type="nomatch" text="" default="" state="$:/state/$label$">&#x229F;</$reveal> {{$label$||unwikified}}</$button>
<$reveal type="nomatch" text="" default="" state="$:/state/$label$" animate="yes">
<$transclude/>
</$reveal>
\end

<$macrocall $name="slider" label={{!!title}}/>


..of the tiddler...

!Untergeschoß

|!UG-A|!UG-B|
|<<thumbnail link:"ug-a.jpg" image:"ug-a_pre.jpg" caption:"UG-A-Abschnitt " icon:"{{$:/core/images/blank}}" color:"red">>|<<thumbnail link:"ug-b.jpg" image:"ug-b_pre.jpg" caption:"UG-B-Abschnitt" icon:"{{$:/core/images/blank}}" color:"red">>|

|!UG-C|!UG-D|
|<<thumbnail link:"ug-c.jpg" image:"ug-c_pre.jpg" caption:"UG-C-Abschnitt " icon:"{{$:/core/images/blank}}" color:"red">>|<<thumbnail link:"ug-d.jpg" image:"ug-d_pre.jpg" caption:"UG-D-Abschnitt" icon:"{{$:/core/images/blank}}" color:"red">>|

...O.K. never heard of inline/block mode ...what does it mean -how can i change it?

thanx for your efforts!

gunman

Jeremy Ruston

unread,
Jul 17, 2015, 3:52:17 AM7/17/15
to Gunman, TiddlyWiki
Hi Gunman

In this case you can force the transclusion to be in block mode by adding a "mode" attribute:

<$transclude mode="block"/>

Best wishes

Jeremy.



Gunman

unread,
Jul 17, 2015, 4:15:13 AM7/17/15
to tiddl...@googlegroups.com, jeremy...@gmail.com, waspw...@gmail.com
Thanks Jeremy, that fixed the problem!!
Reply all
Reply to author
Forward
0 new messages