--
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/UMRpPMVuHNY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/e614b20f-f1c1-45ed-8d8d-049867ee0500o%40googlegroups.com.
Since the only way out of a modal is through the close button
I just want to make it easier to open modals as tiddlers, for me, to edit them, and for users, to print them...a simple link to open the tiddler from the modal...
<$button> open modal
<$action-setfield $tiddler="$:/temp/modal"
subtitle="Demo Modal"
text="Message goes here"
footer="""
<$button message="tm-close-tiddler"> close
<$action-deletetiddler $tiddler="$:/temp/modal"/>
</$button>
<$button message="tm-close-tiddler"> view
<$action-listops $tiddler="$:/StoryList" $subfilter="[[$:/temp/modal]]" />
</$button>
<$button message="tm-close-tiddler"> edit
<$navigator>
<$action-sendmessage $message="tm-edit-tiddler" $param="$:/temp/modal" />
<$action-listops $tiddler="$:/StoryList" $subfilter="[[Draft of '$:/temp/modal']]" />
</$navigator>
</$button>
""" />
<$action-sendmessage $message="tm-modal" $param="$:/temp/modal" />
</$button>
--
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/UMRpPMVuHNY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/863490ca-20c0-4c8b-939a-32c58783e15eo%40googlegroups.com.
Eric you never cease to amaze me. Thank you for that. I like the button options in this approach. Question: since the whole point in my case is to transclude existing tiddlers in modals, I would need to replace all existing instances of $:/temp/modal in this snippet with the title of my tiddler? And maybe delete the text="" part?
\define showModal(tid)
<$button> open modal: <$text text="$tid$" />
<$action-setfield $tiddler="$:/temp/modal/$tid$"
subtitle="$tid$"
text="{{$tid$}}" footer="""
<$button message="tm-close-tiddler"> close
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$button>
<$button message="tm-close-tiddler"> view
<$action-listops $tiddler="$:/StoryList" $subfilter="[[$tid$]]" />
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$button>
<$button message="tm-close-tiddler"> edit
<$navigator>
<$action-sendmessage $message="tm-edit-tiddler" $param="$tid$" />
<$action-listops $tiddler="$:/StoryList" $subfilter="[[Draft of '$tid$']]" />
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/>
</$navigator>
</$button>
""" />
<$action-sendmessage $message="tm-modal" $param="$:/temp/modal/$tid$" />
</$button>
\end
This is working great, except for the view button. It closes the modal but does not open the tiddler. Is something missing?
\define showModal(tid)<$button> open modal: <$text text="$tid$" /> <$action-setfield $tiddler="$:/temp/modal/$tid$" subtitle="$tid$" text="{{$tid$}}" footer=""" <$button message="tm-close-tiddler"> close <$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/> </$button> <$button message="tm-close-tiddler"> view
<$navigator>
<$action-listops $tiddler="$:/StoryList" $subfilter="[[$tid$]]" />
<$action-navigate $to="$tid$" $scroll="yes"/>
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/> </$navigator> </$button>
<$button message="tm-close-tiddler"> edit <$navigator> <$action-sendmessage $message="tm-edit-tiddler" $param="$tid$" />
<$action-listops $tiddler="$:/StoryList" $subfilter="-[[$tid$]] [[Draft of '$tid$']]" /> <$action-navigate $to="Draft of '$tid$'" $scroll="yes"/>
<$action-deletetiddler $tiddler="$:/temp/modal/$tid$"/> </$navigator> </$button> """ /> <$action-sendmessage $message="tm-modal" $param="$:/temp/modal/$tid$" /></$button>\end
Your solution works excellent. My question is : links do not work in modal, how one can gray out them?
<style> .tc-modal-body a { color:inherit; text-decoration:none; cursor:default; } </style>
--
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/UMRpPMVuHNY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/c8a4f79f-a355-4ac5-83af-ffe99e5d382cn%40googlegroups.com.
--
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/UMRpPMVuHNY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/2be183c4-3559-45d3-9e9e-ffdb609ec9afn%40googlegroups.com.