Hello Mark, Hello all
I made some changes to Mark's/Tobi's StorySaverMacro,
These regard design, languages and I cut it in two parts "SaveAStory" and "LoadAStory" to be able to implement the elements in other scenarios.
The two are transcluded into a "stories"-sidebar.
The localized Phrase for "load a story" has to be set because i could not find anything similar in the /language-files.
The .json-File to install it can be downloaded here:
https://www.dropbox.com/s/fowua325b408gff/storysaver.json?dl=0
I hope you like it.


best wishes
Jan


Am 02.05.2016 um 19:08 schrieb 'Mark S.' via TiddlyWiki:
Here's a json with the updated save/show routines and with the suggested view template. Be sure to back up before trying.

I can imagine several ways in which this might not work as you wanted, so you will need to specify how it is not working properly.

It might be possible to create a wikified list with a javascript macro. But I'm thinking that you want your users to edit that list in the text editor. So that would take a second javascript macro to parse the human readable list back into the kind of lists used to save stories. Have to think about that.

Good luck,
Mark

In general, I think TWC was favorable in many ways to TW5.
On Monday, May 2, 2016 at 5:34:37 AM UTC-7, Jan wrote:

    Hello Mark,
    Thanks for your help and sorry for not answering more quickly.
    I did not know ther was so much difference between TWC and TW5.
    I´ll have to do a lot of learning if i really change.
    I could not get your solution to work properly.

    Am 30.04.2016 um 05:44 schrieb 'Mark S.' via TiddlyWiki:
    I don't think there is a "split" operator -- at least it's not
    mentioned in the docs.
    That's a plugin by Tobias....$:/plugins/tobibeer/split
    
<https://groups.google.com/group/tiddlywiki/attach/25c4517a9fe38/Neustart.html?part=0.1.1&authuser=0>

    And I don't think you can capture the nicely formatted list and
    tuck it into a tiddler. It would be cool if you could.
    That's a pitty, in Tiddlytools for classic ther was a plugin
    called "clickify" which did exactly this

    In TWC the solution was the following:
    <<clickify newTiddler
       label:"save story!" focus:title tag:snapshot
       title:{{prompt('Please enter a name','')}}
       text:{{
          var out="";
          story.forEachTiddler(function(t){
       var tid=store.getTiddler(t);
        if(tid&&!tid.isTagged("excludeStory"))
          out+="[["+t+"]]\n";});
         out += '\n' + store.getTiddlerText('openStoryTemplate')
    ##which inserts the textfield of the Template and creates a button
    to open the story##
          out;
       }}>>

    By the template this
    <<openStory {{tiddler.title}}>>
    was inserted into each created SnapshotTiddler to open the story
    contained...

    Thanks again,
    Jan














    On Friday, April 29, 2016 at 5:10:30 PM UTC-7, Jan wrote:

        Hello,
        I think I would like to do a solution with a small detour:
        1. Create a ShadowTiddler called [[Snapshot]] which contains
        the Story like this:
             {{{[split:list{$:/StoryList!!list}]}}}
             Question: How can I exclude the Tiddlers Tagged with
        excludeStory?


        2. How can set the value of
        |<$action-setfield
        $tiddler="$(snapshot)$"$field="text"$value= tags="Snapshot">|
        to the clickyfied Text of [[Snapshot]]

        Thanks...
        Jan



        Am 28.04.2016 um 04:15 schrieb 'Mark S.' via TiddlyWiki:
        Hello,

        Technically, this modification of matebele's version does
        just what you want:

        |
        \define saveSnapshot()
        <$button>SaveSnapshot
        <$action-setfield
        $tiddler="$(snapshot)$"$field="text"$value= tags="Snapshot">
        </$button>
        \end

        \define showSnapshot()
        <$button
        set="$:/StoryList!!list"setTo={{$(snap)$}}>ShowSnapshot</$button>
        \end

        ;Show Snapshot

        <span title="Select a Snapshot"><$select
        tiddler="$:/_snapshots" field="story-name" default='(none)'>
        <$list filter="[tag[Snapshot]]" variable="currentIndex">
        <option value=<<currentIndex>>><<currentIndex>></option>
        </$list>
        </$select></span>
        <$set name="snap" value={{$:/_snapshots!!story-name}}>
        <<showSnapshot>>
        </$set>

        ;Save Snapshot

        <span title="Entera Name"><$edit-text
        tiddler="$:/_snapshots" field="story-name"/></span>
        <$set name="snapshot"value={{$:/_snapshots!!story-name}}>
        <<saveSnapshot >>
        </$set>
        |

        Be sure to back up before trying this! You will need to
        create an additional tiddler |$:/_snapshots|.

        But I'm guessing that you won't like the way it works -- all
        the tiddlers are listed one after another in a single line
        rather than in list. I imagine it will take a javáscript
        macro to be able to make it into a standard list.

        Mark

        On Wednesday, April 27, 2016 at 3:24:46 PM UTC-7, Jan wrote:

            Hello Mark,
            I am working on a collection of excercises for
            theatre-classes.
            Tiddlers describing Exercises are combined for lessons
            vía stories.
            Thus the stories - like shold be tagged to sort them and
            described which aim shall be achieved.
            The idea is to work together on this collection and to
            exchange exercises and lessons. It is necessary to
            import just the new storytiddler (and the tiddlers that
            don't exist yet, but that's another task) in order not
            to make a mess.
If you are interested the in TWC version here it is(alas in german):
            
https://www.dropbox.com/s/837chmzhxky7wjm/DS%20Arbeitsfassung.html?dl=0
            
<https://www.dropbox.com/s/837chmzhxky7wjm/DS%20Arbeitsfassung.html?dl=0>
            If you type storydemo in the searchfield you see the
            kind of storytiddler I would like to generate. This one
            was generated automatically which collects information
            from fields in the tiddlers of the story...

            Thanks for your interest
            Jan




            Am 27.04.2016 um 22:06 schrieb 'Mark S.' via TiddlyWiki:
            I'm trying to understand your use case. If users have
            access to your TW, can't they already just use the
            dropdown list to select and display a particular story?
            How will having the list in a separate tiddler help you
            share metadata?

            It almost sounds like you want to share not just a list
            of tiddlers but the contents of the tiddlers as well --
            basically an export.

            Thanks,
            Mark

            On Wednesday, April 27, 2016 at 10:19:05 AM UTC-7, Jan
            wrote:

                Hi Mat,
                thanks for this interesting solution, it seems that
                here all snapshots are saved in one tiddler.
                I need to store each story in a single Tiddler.
                This is necessary because I have to add metadata to
                the stories and because I want to be able to
                exchange these stories with other users of the Project.
                Is it possible to change the code

                *-to create a button which saves a list of open Tiddlers in a 
new Tiddler, (SaveStory)***

                \define saveSnapshot()
                <$button
                set="$:/_snapshots##$(snapText)$"
                setTo={{$:/StoryList!!list}}>
                {{$:/core/images/done-button}}
                Save</$button>
                \end

                *-to create a button to open all Tiddlers contained in a 
Tiddler while closing all others.(OpenStory)*


                \define loadSnapshot()
                <$button
                set="$:/StoryList!!list"
                setTo={{$:/_snapshots##$(snapSelect)$}}>
                {{$:/core/images/right-arrow}}
                Load</$button>
                \end

                -Jan



                Am 27.04.2016 um 14:59 schrieb Mat:
                Maybe matabeles/tobias'  thing will help?

                
http://tobibeer.github.io/tb5/#Saving%20And%20Loading%20A%20History%20Snapshot
                
<http://tobibeer.github.io/tb5/#Saving%20And%20Loading%20A%20History%20Snapshot>

                <:-)


                On Wednesday, April 27, 2016 at 2:07:48 PM UTC+2,
                Jan wrote:

                    Hello,
                    I am finally trying to migrate my TWC into
                    TW5. Unfortunately I would need some very
                    plugins which I found on Eric’s TiddlyTools.
                    What I would need most is the
                    OpenStory/SaveStoryPlugins which allows
                    *-to create a button which saves a list of
                    open Tiddlers in a new Tiddler, and (SaveStory)**
                    -to create a button to open all Tiddlers
                    contained in a Tiddler while closing all
                    others. (OpenStory)*
                    I would be very happy, if there was a way to
                    do this.

                    Yours Jan

-- 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
                <https://groups.google.com/group/tiddlywiki>.
                To view this discussion on the web visit
                
https://groups.google.com/d/msgid/tiddlywiki/a098f730-cf23-4c0f-ac54-3425487ce93d%40googlegroups.com
                
<https://groups.google.com/d/msgid/tiddlywiki/a098f730-cf23-4c0f-ac54-3425487ce93d%40googlegroups.com?utm_medium=email&utm_source=footer>.
                For more options, visit
                https://groups.google.com/d/optout
                <https://groups.google.com/d/optout>.

-- 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
            <https://groups.google.com/group/tiddlywiki>.
            To view this discussion on the web visit
            
https://groups.google.com/d/msgid/tiddlywiki/c46836b9-c347-4d73-b801-13e5a9cf3bf8%40googlegroups.com
            
<https://groups.google.com/d/msgid/tiddlywiki/c46836b9-c347-4d73-b801-13e5a9cf3bf8%40googlegroups.com?utm_medium=email&utm_source=footer>.
            For more options, visit
            https://groups.google.com/d/optout
            <https://groups.google.com/d/optout>.

-- 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
        <https://groups.google.com/group/tiddlywiki>.
        To view this discussion on the web visit
        
https://groups.google.com/d/msgid/tiddlywiki/81be6646-c94e-4f6d-abee-6afc107cc321%40googlegroups.com
        
<https://groups.google.com/d/msgid/tiddlywiki/81be6646-c94e-4f6d-abee-6afc107cc321%40googlegroups.com?utm_medium=email&utm_source=footer>.
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.

-- 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 <javascript:>.
    To post to this group, send email to tiddl...@googlegroups.com
    <javascript:>.
    Visit this group at https://groups.google.com/group/tiddlywiki
    <https://groups.google.com/group/tiddlywiki>.
    To view this discussion on the web visit
    
https://groups.google.com/d/msgid/tiddlywiki/761b548c-826f-4b73-b615-1d6673529b92%40googlegroups.com
    
<https://groups.google.com/d/msgid/tiddlywiki/761b548c-826f-4b73-b615-1d6673529b92%40googlegroups.com?utm_medium=email&utm_source=footer>.
    For more options, visit https://groups.google.com/d/optout
    <https://groups.google.com/d/optout>.

--
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+unsubscr...@googlegroups.com <mailto:tiddlywiki+unsubscr...@googlegroups.com>. To post to this group, send email to tiddlywiki@googlegroups.com <mailto:tiddlywiki@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/e8a3f2b8-02b0-4463-8537-4c6c9914734f%40googlegroups.com <https://groups.google.com/d/msgid/tiddlywiki/e8a3f2b8-02b0-4463-8537-4c6c9914734f%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
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+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@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/5752D120.6060708%40googlemail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to