Use core images in a button

115 views
Skip to first unread message

David Myers

unread,
Apr 27, 2016, 5:16:44 AM4/27/16
to TiddlyWiki
Hello all,

This seems like it should be really easy, but I can't find the answer anywhere, and my test are not working.

I would like to create a 'reveal' button that use the  $:/core/images/spiral image as the target for the click.

I know how to make a general reveal button.

<$button class="tc-btn-invisible" popup=<<qualify "$:/temp/popup">>>
Button Text
</$button>
<$reveal type="nomatch" state=<<qualify "$:/temp/popup">> text="">

This is the contents that are revealed when pressing the button, you can include any type of tiddly wiki
item within this section, including buttons (and possibly transclusions?  need to test).

Just ensure the contents are between the ``reveal`` tags

</$reveal>

I have even used the 'edit' tiddler icon in the past (sample below)

<$button class="tc-btn-invisible" title="Edit this tiddler">
<$action-sendmessage $message="tm-edit-tiddler"/>

{{$:/core/images/edit-button}}
</$button>

But can't work out how to do the same for the other core images.

I've tried

<$button class="tc-btn-invisible" title="Edit this tiddler">
{{$:/core/images/spiral}}
</$button>

But get no image showing up, so I tried with an [img[{{$:/core/images/edit-button}}]] but again no joy.

I'm guessing the problem is somehow related to my desire to transclue a system tiddler.

Any help will be greately appreciated.

David

Jeremy Ruston

unread,
Apr 27, 2016, 5:36:36 AM4/27/16
to tiddl...@googlegroups.com
Hi David

Your example below works for me when I paste it into an empty TW. Maybe you’ve accidentally overwritten the $:/core/images/spiral tiddler?

Best wishes

Jeremy

David Myers

unread,
Apr 27, 2016, 5:45:44 AM4/27/16
to tiddl...@googlegroups.com
OMG !

That was far too silly, it never even occured to me that I may not have it !

Thanks Jeremy.

D


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/Pbn6Qd8d-SM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/D807553A-29D0-4DA5-BAF3-D870DA102644%40gmail.com.

For more options, visit https://groups.google.com/d/optout.

Jeremy Ruston

unread,
Apr 27, 2016, 6:01:16 AM4/27/16
to tiddl...@googlegroups.com
Hi David

That was far too silly, it never even occured to me that I may not have it !

Well, you should have it; it’s part of the core plugin. I was speculating whether you might have accidentally deleted it.

What do you see if you search for “spiral” in the shadow tab of $:/AdvancedSearch?

Best wishes

Jeremy.


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 https://groups.google.com/group/tiddlywiki.

David Myers

unread,
Apr 27, 2016, 6:06:15 AM4/27/16
to tiddl...@googlegroups.com
Sorry, should have been more clear, I had clearly deleted it at some point by accident, probably when importing / exporting something else.

Just dragged it into my TW5 from tiddlywiki.com

problem solved.


D

Jeremy Ruston

unread,
Apr 27, 2016, 6:09:33 AM4/27/16
to tiddl...@googlegroups.com
Hi David

Sorry, should have been more clear, I had clearly deleted it at some point by accident, probably when importing / exporting something else.

Because it’s part of the core plugin you can’t have actually deleted it, just overwritten it with something else. So you should be able to open the extraneous tiddler in your wiki and then delete your local copy, allowing the core shadow version to reassert itself.

Best wishes

Jeremy

David Myers

unread,
Apr 27, 2016, 6:43:56 AM4/27/16
to tiddl...@googlegroups.com
Advanced search only shows a single copy.

plus the 'import' tiddler retains details of when I imported just now

I propose that you don't worry, my problem is solved, thanks to super rapid response.

(did I mention I love TW everything about it is great).


D

Reply all
Reply to author
Forward
0 new messages