My code is similar to Richard's except that it assumes you want to create a 
tiddler containing the output of many tiddlers.  I used it with 
TiddlyWiki.com and filtered on tag=HelloThere. The results break at some 
point in terms of formatting but hopefully the report you create would be 
based on simpler tiddlers.  The results from a static export will be 
cleaner at least with some data.

\define report() 
Report: {{$:/temp/reporttitle}}

<$list filter="[tag[HelloThere]]">

! <$view field="title"/>

<$view field="text"/>
</$list> 
\end

<$edit-text tiddler="$:/temp/reporttitle" tag="input" size="50" default="
Your Title Here"/>

<$wikify name="snapshot" text="<<report>>" output="html">
<$button>
<$action-sendmessage $message="tm-new-tiddler" 
title={{$:/temp/reporttitle}}  tags="Snapshot" text=<<snapshot>>/>
Make Snapshot
</$button>
</$wikify>

Your report will look something like the information below:


----

<<report>>

On Thursday, May 25, 2017 at 10:32:01 AM UTC-7, @TiddlyTweeter wrote:
>
>
>
> *Q: Is it possible to copy RENDERED HTML of a Tiddler to a new Tiddler?*I've 
> asked about this before but I think my question was not so clear. I'm 
> trying again, here is a Use Case ...
>
>    - Fred has a large allotment on which he grows leeks for vegetable 
>    competitions;
>
>
>    - Fred uses TiddlyWiki to log, daily, the various nutrients he feeds 
>    his leeks; he also makes notes on weather conditions; as well as leek 
> girth;
>
>
>    - Monthly, Fred uses a list filter to produce a report on the state of 
>    his leeks.
>
>
>    - One morning Fred went into shock as he realised he had NO copy of 
>    his previous reports. Since the Leek Exhibition Certification Board 
>    requires ARCHIVES of previous reports in order to exhibit he got into a 
>    depressed state.
>
> This jovial example is not entirely mad. "Fred's" life would a lot easier 
> IF he had a simple way to capture the RENDERED HTML of his dynamically 
> created reports to a New Tiddler on the day he made one. Then he could have 
> his needed archive of results ready and to hand.
>
>
> ---
>
>
> Technically what I can see is the "Export" to HTML does produce rendered 
> pages. But for this purpose only the contents of the <body> section would 
> be needed for a Tiddler since everything else needed for layout is already 
> there.
>
>
> *Has anyone ever dealt with this issue, i.e. capture Rendered HTML of a 
> dynamic Tiddler and copy it to a New Tiddler?*
>
>
> Please ask me to clarify if my question is not clear.
>
>
> Best wishes
>
> Josiah
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/ad74efa6-85b2-4bed-811a-16675790f1dc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to