Link to tidier from modal?

229 views
Skip to first unread message

magev958

unread,
Aug 1, 2017, 2:36:47 PM8/1/17
to TiddlyWiki
Is it possible to open links to tiddler from a modal? Can't seem to get it to work

/Magnus

Jeebus K

unread,
Aug 2, 2017, 11:36:21 PM8/2/17
to TiddlyWiki
You may need to hide or close the modal frame.

magev958

unread,
Aug 19, 2017, 8:56:20 PM8/19/17
to TiddlyWiki
Thanks for Your respond, but I'm not sure how to use the answer. I have this code in a template-tiddler:

\define modalLink(tiddlerName,message)
    <$button message="tm-navigate" 
            param="$tiddlerName$" 
            class="tc-btn-invisible tc-tiddlylink
    ">
        $message$
  <$action-sendmessage $message='tm-close-tiddler'/><$link to={{!!title}}><$view field="caption"/></$link>
    </$button>
\end

<div class="storyList">
<$list filter="[genus{!!caption}!has[draft.of]sort[caption]] -[rank[genus]]">
    <$macrocall $name="modalLink"
            tiddlerName=<<currentTiddler>>
    />
    <br/>
</$list>
</div>

magev958

unread,
Aug 31, 2017, 10:18:13 AM8/31/17
to TiddlyWiki
Vacation is over and it´s time to give it a new go. I´ll try and explain in more detail what I want to do. I have a template that insert a button in all parent tiddler. The template list all tiddler with the field "parent" containing the content of the parent-tiddlers field "caption " and opens a modal with the list of all descendents.
I´d like to be able to click and open the tiddler in the storyline, but so far I´ve only manage to open the tiddler inside the modal.

minimal test case here:

@TiddlyTweeter

unread,
Aug 31, 2017, 10:48:42 AM8/31/17
to TiddlyWiki
Is the question of how to open a tiddler FROM a modal or IN a modal? Modals are forefront until you explicitly close them. Even when you initiate a new Tiddler its gonna be BEHIND the modal until you explicitly close it. They have CSS z-indexes that make them take over the foreground. That is my understanding.

Josiah

magev958

unread,
Aug 31, 2017, 2:11:09 PM8/31/17
to TiddlyWiki
I´d like to open the tiddler in the story behind the modal and close the modal. But I thought z-index where just the layer in html canvas? I´d like the newly open tiddler to be part of the regular flow in the story

magev958

unread,
Sep 8, 2017, 9:54:44 PM9/8/17
to TiddlyWiki
I have tried different ways of adding the tiddler to be opened to the $:/StoryList and closing the modal but to no avail. Anyone know if it would be possible to make a macro to achieve this?

Evgeniy Degtyar

unread,
Apr 26, 2018, 3:43:41 AM4/26/18
to TiddlyWiki
Just trying to understand how to make it work too. Still no options?

суббота, 9 сентября 2017 г., 4:54:44 UTC+3 пользователь Magnus написал:

BurningTreeC

unread,
Apr 26, 2018, 4:04:11 AM4/26/18
to TiddlyWiki
Hi, I believe that the modal is missing the informations from the <$navigator> widget

Basically, to interact with the story river, the template for the modal needs something like this on top:

<$navigator story="$:/StoryList" history="HistoryList">

... Modal Content ...


</$navigator>

Evgeniy Degtyar

unread,
Apr 26, 2018, 5:04:59 AM4/26/18
to tiddl...@googlegroups.com
Thank you! It's what I need.

--
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/w2NKqve0Y80/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@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/d7008e06-33ab-44c9-b9f5-d21714a83ee1%40googlegroups.com.

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

Evgeniy Degtyar

unread,
Apr 26, 2018, 5:51:26 AM4/26/18
to tiddl...@googlegroups.com

Just sharing why I need this


Reply all
Reply to author
Forward
0 new messages