Re: [tw5] Re: Adding text to newly imported tiddlers

2020-07-01 Thread Robert Jopling
Thanks Mat for that advice.

Your solution works great for my purposes and has taught me something as
well.

Rob

On Wed, 1 Jul 2020 at 09:32, Mat  wrote:

> @Robert, I just realized something to be careful with: Make sure the
> filter includes something so that it is only the newly imported tiddlers
> and not old tiddlers that already have the inserted text. I.e add some date
> criteria in the filter. I can't recall exactly how to do this but you can
> do a search in the forum. You can probably make it generic by making the
> date be todays date (using the "now" macro)
>
> <:-)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/7d8ba824-d1bc-4584-aef7-757c4859eb6eo%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCu1ivXPS_i%3DHvz%2B29em4FSNFuXsj7%3DB9xOvk-N3Q0i4jw%40mail.gmail.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-07-01 Thread Mat
@Robert, I just realized something to be careful with: Make sure the filter 
includes something so that it is only the newly imported tiddlers and not 
old tiddlers that already have the inserted text. I.e add some date 
criteria in the filter. I can't recall exactly how to do this but you can 
do a search in the forum. You can probably make it generic by making the 
date be todays date (using the "now" macro)

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7d8ba824-d1bc-4584-aef7-757c4859eb6eo%40googlegroups.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Robert Jopling
Hi Mat

That worked a treat. Thank you so much.

Rob

On Tue, 30 Jun 2020 at 12:49, Mat  wrote:

> OK, modify this and see if it works:
>
> \define append()
> $(text)$
>
> My added text
>
> *one
> *two
> \end
>
> <$button>
> clicketyclick
> <$list filter="[tag[HelloThere]]">
> <$set name=text value={{{ [{!!title}get[text]] }}}>
> <$action-setfield $tiddler={{!!title}} text=<> />
> 
> 
> 
>
> <:-)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/f7bfa35e-8c29-44d3-bce9-7163b15f4161o%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCtwyergm1%3DdWdtXO11pPgAChkMac4zkWPoNMh5sCsVfdA%40mail.gmail.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread TW Tones
A view template to support viewing your tiddlers should be all that's needed.

If the data is not private can you share it in a private reply? There are 
plenty of ways to automate this without appending anything.

Regards
Tony

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/1a27a652-7e96-473b-910e-8aba1c93c810o%40googlegroups.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Robert Jopling
Thanks Mat. Really appreciate it.

Will give it a go and let you know how i get on

Cheers

Rob

On Tue, 30 Jun 2020 at 12:49, Mat  wrote:

> OK, modify this and see if it works:
>
> \define append()
> $(text)$
>
> My added text
>
> *one
> *two
> \end
>
> <$button>
> clicketyclick
> <$list filter="[tag[HelloThere]]">
> <$set name=text value={{{ [{!!title}get[text]] }}}>
> <$action-setfield $tiddler={{!!title}} text=<> />
> 
> 
> 
>
> <:-)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/f7bfa35e-8c29-44d3-bce9-7163b15f4161o%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCtxgBaiYsApqU2wbQr1_zMhHrHRcN_tyETQcvg6aQWp4w%40mail.gmail.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Mat
OK, modify this and see if it works:

\define append()
$(text)$

My added text

*one
*two
\end

<$button>
clicketyclick
<$list filter="[tag[HelloThere]]">
<$set name=text value={{{ [{!!title}get[text]] }}}>
<$action-setfield $tiddler={{!!title}} text=<> />




<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/f7bfa35e-8c29-44d3-bce9-7163b15f4161o%40googlegroups.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Robert Jopling
In response

1. Yes they are all tagged the same
2. Yes they would need to be findable in a regular search

I hope this helps

Rob

On Tue, 30 Jun 2020 at 10:57, Mat  wrote:

> @Robert, is there any other commonality - besides that they're all
> imported - among the relevant tiddlers? For example, do they happen to be
> tagged in a specific way that is unique for all tiddlers where you want
> this text to show, or are they all prefixed in some way or do they all have
> some shared uniquely titled field?
>
> And will you use the appearing text other than viewing it? Should it be
> findable in regular search? Will you transclude it elsewhere?
>
> IF your reply is that "they all share the common trait X" and "it doesn't
> have to be findable in regular search" then the problem is very simple to
> solve. It is solvable regardless, but IF those criteria are met then it's
> really simple. Just sayin.
>
> <:-)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/ddcfe249-cfef-4dd5-8cf4-97d2cff30870o%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCu574vkaimJg%3DF5DpVWMX5Hqi6FcKgdkTgPQu6H933%2ByQ%40mail.gmail.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Mat
@Robert, is there any other commonality - besides that they're all imported 
- among the relevant tiddlers? For example, do they happen to be tagged in 
a specific way that is unique for all tiddlers where you want this text to 
show, or are they all prefixed in some way or do they all have some shared 
uniquely titled field?

And will you use the appearing text other than viewing it? Should it be 
findable in regular search? Will you transclude it elsewhere?

IF your reply is that "they all share the common trait X" and "it doesn't 
have to be findable in regular search" then the problem is very simple to 
solve. It is solvable regardless, but IF those criteria are met then it's 
really simple. Just sayin.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/ddcfe249-cfef-4dd5-8cf4-97d2cff30870o%40googlegroups.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Robert Jopling
Tony

Many thanks for responding to my query.

This is what i am trying to achieve. I have some data in a database and,
with Eric's help, I have transferred that data via JSON into a number of
tiddlers with data in a number of fields. To see the data I have to add the
same text to the body of every tiddler so I would like to add that text to
the new tiddlers on import. Possibly a different solution to the problem
that I outlined in my first email.

So in answer to your questions:
1. The body is empty so it does not matter
2. Yes, common to all.

I hope this helps and many thanks.

Rob

On Tue, 30 Jun 2020 at 02:38, TW Tones  wrote:

> Robert,
>
>
>- Do you want this to be appended, pre-pended or overwrite the text?
>- Is this text common for all, or do you wish to edit it before adding
>to each tiddler?
>
>
> We can make a full solution, but the first thing is to keep the list of
> tiddlers imported. After import if you rename $:/import to another name you
> can keep the list of tiddlers.
>
> I will come back soon with a way to extract those titles to use for
> further transformation.
>
> Regards
> Tony
>
>
> On Tuesday, June 30, 2020 at 5:57:45 AM UTC+10, Robert Jopling wrote:
>>
>> How do you add new text to the body of all newly imported tiddlers?
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/2ca36dab-f976-4cf1-bf7f-dea891e3a7c8o%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCuJAEUkcX7JBtegVuQDXPicbbq6GCx_5MYqhxHfcpYv_Q%40mail.gmail.com.


Re: [tw5] Re: Adding text to newly imported tiddlers

2020-06-30 Thread Robert Jopling
Hello

Thank you for responding to my query. It is probably worth outlining what i
am trying to achieve. I have some data in a database and, with Eric's help,
I have transferred that data via JSON into a number of tiddlers with data
in a number of fields. To see the data I have to add the same text to the
body of every tiddler so I would like to add that text to the new tiddlers
on import. Possibly a different solution to the problem that I outlined in
my first email.

Does that help?

Rob

On Tue, 30 Jun 2020 at 09:09, Mat  wrote:

> As Tony notes, is it the same text that is to be inserted for them all?
> Would it be OK if it was really inserted via a viewtemplate rather than to
> manipulate the text field? This would appear the same when you look at the
> tiddler. A viewtemplate solution would be simpler but the text would e.g
> not register in standard "search"... (which might be a good thing if it is
> a recurring text.)
>
> <:-)
>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/tiddlywiki/6a1ad222-79a5-4ff3-90b2-174da334784bo%40googlegroups.com
> 
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/CAJCYWCsEA%3DeHRXqEzGuMr0dL-VDPM_mCstovur67XAOHBBV%2BiA%40mail.gmail.com.