[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-05 Thread @TiddlyTweeter
Ciao BTC

Very useful to see. Thanks!

I do see a more complex situation where I could need that and not just 
"set".

Best wishes, J

BurningTreeC wrote:
>
> \define get-wiki-path()
> C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_$(wikiName)$\\index.html
> \end
> \define actions()
> <$action-setfield $tiddler="ma-tiddla" $index="path" 
> $value="""$(wikiPath)$"""/>
> \end
>
> <$vars wikiName={{tiddlerwithwikiname}}>
> <$vars wikiPath=<>>
> <$button>
> <>
> set
> 
> 
> 
>
>

-- 
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/66632a1a-e1fb-4af0-8151-aa0ff62e2aa2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-05 Thread @TiddlyTweeter
Mark S.

That is good. 

I delayed replying till I tested it with the buttons of automate (some 
quite complex) properly.

It works well without adding too much code.

Thankyou! J.

Mark S. wrote:
>
> So does
>
>
> Not work?
> \define sfTo() ..\..\pages\tw\tw_$(twName)$\
>
>
> <$set name=twName value={{$:/PerryMason}}> 
> <$button>
>   Make a ''<>'' single file
>   <$action-websocketmessage $type='buildHTMLWiki' outputFolder=<> 
> outputName="index.html" />
> 
> 
>
>

-- 
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/4a785f89-4d19-4291-8556-e5c67c9fdf00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-04 Thread BurningTreeC
in simple german: I can set multiple variables with the vars widget, but if 
I need one of those variables in another one, I need another vars widget 
within the scope of the one that defines the variable I need for the second 
one.

-- 
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/528456a8-9aa1-45ec-a50b-539609e84560%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-04 Thread BurningTreeC

>
> Hi,
> You only need 1 !!! vars widget. Have closer look at the docs. 
>

Hi @pmario - that's apparently NOT true

from the docs: "The content of the <$vars> widget is the scope for the 
value assigned to the variable."

testing with one vars widget results in the wikiName variable not defined 
in get-wiki-path 

>
> -m
>

-- 
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/f6095e69-f607-4c01-a7f6-8d186a33b1ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-04 Thread PMario
Hi,
You only need 1 !!! vars widget. Have closer look at the docs. 

-m

-- 
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/b02100cb-a0d6-43f6-b13b-fcf50434f22a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-04 Thread BurningTreeC
\define get-wiki-path()
C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_$(wikiName)$\\index.html
\end
\define actions()
<$action-setfield $tiddler="ma-tiddla" $index="path" 
$value="""$(wikiPath)$"""/>
\end

<$vars wikiName={{tiddlerwithwikiname}}>
<$vars wikiPath=<>>
<$button>
<>
set




-- 
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/ec186473-2362-46e3-b65b-2585551eace0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-04 Thread BurningTreeC
@TiddlyTweeter ,

That string where you want to transclude that tiddler text - is it in a BOB 
config file?


-- 
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/d308a1ec-49e5-4a8a-b654-fa4cb3b9fe57%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread TonyM
Josiah,

I see no reference in this discussion to using the wikify widget rather 
than set to lock the text value into the wikify defined variable.

Perhaps that would help

Regards
Tony


On Monday, June 4, 2018 at 12:28:28 AM UTC+10, @TiddlyTweeter wrote:
>
> I need to get the literal text of a Tiddler into a simple macro/variable. 
> I have studied the documentation (like 
> https://tiddlywiki.com/#Concatenating%20text%20and%20variables%20using%20macro%20substitution)
>  
> but still can't see how to do it ...
>
> *Use Case*
>
> tiddler title: "$:/PerryMason"
> text content: "Paul Drake"
>
> All I want to do is get the *literal plain text* "Paul Drake" in to a 
> variable \defined perry().
>
> Anyone know an easy way to do that?
>
> Help much appreciated
> 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 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/f27b21f1-1cbf-4736-8de9-e8d3d3da8313%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread 'Mark S.' via TiddlyWiki
So does

\define sfTo() ..\..\pages\tw\tw_$(twName)$\


<$set name=twName value={{$:/PerryMason}}> 
<$button>
  Make a ''<>'' single file
  <$action-websocketmessage $type='buildHTMLWiki' outputFolder=<> 
outputName="index.html" />



Not work?

-- Mark

On Sunday, June 3, 2018 at 12:50:49 PM UTC-7, @TiddlyTweeter wrote:
>
> It is in a single tiddler with several other buttons that just vary 
> slightly. Its a Tiddler from which I "Automate" the wiki using Bob commands.
>
> On Sunday, 3 June 2018 20:35:05 UTC+2, Mark S. wrote:
>>
>> Where does this button appear? In a template, or a single launch tiddler?
>>
>> More importantly, why not wrap a <$set name=twName 
>> value={{$:/PerryMason}}>  around the button (deleting macro twName 
>> of course) ?
>>
>> Good luck!
>> -- Mark
>>
>> On Sunday, June 3, 2018 at 11:01:47 AM UTC-7, @TiddlyTweeter wrote:
>>>
>>> Yeah its to do with Bob automation. 
>>>
>>> It works perfectly if I give it a defined literal string like this ...
>>>
>>> \define twName() Paul Drake
>>> \define sfTo() ..\..\pages\tw\tw_$(twName)$\
>>>
>>> And then click command to make a wiki ...
>>>
>>> <$button>
>>>   Make a ''<>'' single file
>>>   <$action-websocketmessage $type='buildHTMLWiki' outputFolder=<> 
>>> outputName="index.html" />
>>> 
>>>
>>> Console report ... works fine ...
>>>
>>> Build Wiki
>>> Built Wiki:  C:\bag\PortableApps\twMU\pages\tw\tw_Paul Drake\index.html
>>>
>>> My idea was NOT to have to hard code the name of every output wiki, but 
>>> rather use the text field of "$:/WikiName" since that is built in. When Bob 
>>> creates a wiki that Tiddler is created. 
>>>
>>> I never envisaged that getting the plain text into a global variable 
>>> could be so complex! I thought the issue was just me :-). Apparently its a 
>>> bit more complicated.
>>>
>>> J.
>>>
>>> On Sunday, 3 June 2018 19:39:21 UTC+2, Mark S. wrote:

 I imagine this relates to invoking commands from Bob, which I haven't 
 studied. Where is this "path: 'c:\\'" structure located? Is it in a 
 regular tiddler? 

 If it really needs to be hard-coded text, then I think you would need a 
 button that would trigger actions that would create the actual text. It 
 would be something you need to do whenever updating your configuration, I 
 suppose.

 -- Mark

 On Sunday, June 3, 2018 at 10:28:25 AM UTC-7, @TiddlyTweeter wrote:
>
> Mark S. wrote:
>>
>> I think you need to explain more about your use case.
>>
>
> You are right. The difficulty *IS* explaining it.
>
> Transclusion is so sophisticated in TW many don't realise that when 
> you create macro/variables you are transferring the "transclusion code" 
> into it, not the value, most of the time.
>  
>
>>  You could just create a global macro:
>>
>> \define perry() {{HelloThere!!text}}
>>
>
> Works perfectly in most transclusion contexts. But you can see the 
> issue with that is if you use the macro in a context like a command 
> processor that only accepts literal text... the macro/variable isn't 
> holding the value, but the transclusion code to display it.
>
> path: 'C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_
> {{$:\\HelloThere!!text}}\\index.html'
>  
> I will try layout a more detailed example and be as clear as I can. 
> But I think this starts to illustrates the issue I hope.
>
> Thanks
> 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 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/a7054698-2925-46c8-b328-04b25f3ca511%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread @TiddlyTweeter
It is in a single tiddler with several other buttons that just vary 
slightly. Its a Tiddler from which I "Automate" the wiki using Bob commands.

On Sunday, 3 June 2018 20:35:05 UTC+2, Mark S. wrote:
>
> Where does this button appear? In a template, or a single launch tiddler?
>
> More importantly, why not wrap a <$set name=twName 
> value={{$:/PerryMason}}>  around the button (deleting macro twName 
> of course) ?
>
> Good luck!
> -- Mark
>
> On Sunday, June 3, 2018 at 11:01:47 AM UTC-7, @TiddlyTweeter wrote:
>>
>> Yeah its to do with Bob automation. 
>>
>> It works perfectly if I give it a defined literal string like this ...
>>
>> \define twName() Paul Drake
>> \define sfTo() ..\..\pages\tw\tw_$(twName)$\
>>
>> And then click command to make a wiki ...
>>
>> <$button>
>>   Make a ''<>'' single file
>>   <$action-websocketmessage $type='buildHTMLWiki' outputFolder=<> 
>> outputName="index.html" />
>> 
>>
>> Console report ... works fine ...
>>
>> Build Wiki
>> Built Wiki:  C:\bag\PortableApps\twMU\pages\tw\tw_Paul Drake\index.html
>>
>> My idea was NOT to have to hard code the name of every output wiki, but 
>> rather use the text field of "$:/WikiName" since that is built in. When Bob 
>> creates a wiki that Tiddler is created. 
>>
>> I never envisaged that getting the plain text into a global variable 
>> could be so complex! I thought the issue was just me :-). Apparently its a 
>> bit more complicated.
>>
>> J.
>>
>> On Sunday, 3 June 2018 19:39:21 UTC+2, Mark S. wrote:
>>>
>>> I imagine this relates to invoking commands from Bob, which I haven't 
>>> studied. Where is this "path: 'c:\\'" structure located? Is it in a 
>>> regular tiddler? 
>>>
>>> If it really needs to be hard-coded text, then I think you would need a 
>>> button that would trigger actions that would create the actual text. It 
>>> would be something you need to do whenever updating your configuration, I 
>>> suppose.
>>>
>>> -- Mark
>>>
>>> On Sunday, June 3, 2018 at 10:28:25 AM UTC-7, @TiddlyTweeter wrote:

 Mark S. wrote:
>
> I think you need to explain more about your use case.
>

 You are right. The difficulty *IS* explaining it.

 Transclusion is so sophisticated in TW many don't realise that when you 
 create macro/variables you are transferring the "transclusion code" into 
 it, not the value, most of the time.
  

>  You could just create a global macro:
>
> \define perry() {{HelloThere!!text}}
>

 Works perfectly in most transclusion contexts. But you can see the 
 issue with that is if you use the macro in a context like a command 
 processor that only accepts literal text... the macro/variable isn't 
 holding the value, but the transclusion code to display it.

 path: 'C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_
 {{$:\\HelloThere!!text}}\\index.html'
  
 I will try layout a more detailed example and be as clear as I can. But 
 I think this starts to illustrates the issue I hope.

 Thanks
 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 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/4d07ef1e-d71b-4274-9c47-8bed3e0c5adc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread 'Mark S.' via TiddlyWiki
Where does this button appear? In a template, or a single launch tiddler?

More importantly, why not wrap a <$set name=twName value={{$:/PerryMason}}> 
 around the button (deleting macro twName of course) ?

Good luck!
-- Mark

On Sunday, June 3, 2018 at 11:01:47 AM UTC-7, @TiddlyTweeter wrote:
>
> Yeah its to do with Bob automation. 
>
> It works perfectly if I give it a defined literal string like this ...
>
> \define twName() Paul Drake
> \define sfTo() ..\..\pages\tw\tw_$(twName)$\
>
> And then click command to make a wiki ...
>
> <$button>
>   Make a ''<>'' single file
>   <$action-websocketmessage $type='buildHTMLWiki' outputFolder=<> 
> outputName="index.html" />
> 
>
> Console report ... works fine ...
>
> Build Wiki
> Built Wiki:  C:\bag\PortableApps\twMU\pages\tw\tw_Paul Drake\index.html
>
> My idea was NOT to have to hard code the name of every output wiki, but 
> rather use the text field of "$:/WikiName" since that is built in. When Bob 
> creates a wiki that Tiddler is created. 
>
> I never envisaged that getting the plain text into a global variable could 
> be so complex! I thought the issue was just me :-). Apparently its a bit 
> more complicated.
>
> J.
>
> On Sunday, 3 June 2018 19:39:21 UTC+2, Mark S. wrote:
>>
>> I imagine this relates to invoking commands from Bob, which I haven't 
>> studied. Where is this "path: 'c:\\'" structure located? Is it in a 
>> regular tiddler? 
>>
>> If it really needs to be hard-coded text, then I think you would need a 
>> button that would trigger actions that would create the actual text. It 
>> would be something you need to do whenever updating your configuration, I 
>> suppose.
>>
>> -- Mark
>>
>> On Sunday, June 3, 2018 at 10:28:25 AM UTC-7, @TiddlyTweeter wrote:
>>>
>>> Mark S. wrote:

 I think you need to explain more about your use case.

>>>
>>> You are right. The difficulty *IS* explaining it.
>>>
>>> Transclusion is so sophisticated in TW many don't realise that when you 
>>> create macro/variables you are transferring the "transclusion code" into 
>>> it, not the value, most of the time.
>>>  
>>>
  You could just create a global macro:

 \define perry() {{HelloThere!!text}}

>>>
>>> Works perfectly in most transclusion contexts. But you can see the issue 
>>> with that is if you use the macro in a context like a command processor 
>>> that only accepts literal text... the macro/variable isn't holding the 
>>> value, but the transclusion code to display it.
>>>
>>> path: 'C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_
>>> {{$:\\HelloThere!!text}}\\index.html'
>>>  
>>> I will try layout a more detailed example and be as clear as I can. But 
>>> I think this starts to illustrates the issue I hope.
>>>
>>> Thanks
>>> 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 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/763f90e4-3edb-437a-8459-502d9b204d03%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread @TiddlyTweeter
Ciao wjam

How would I get the output of that into a global macro/variable ?

Any tips appreciated
Josiah

On Sunday, 3 June 2018 17:59:34 UTC+2, wjam wrote:
>
> you can use the wikify widget where
>
> text='<$view tiddler="your tiddler" field="text"/>'
>
> wjam
>
>

-- 
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/02600f19-f15e-4abd-a14b-ffd3f23bdacc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread @TiddlyTweeter
Mark

Footnote ... the "c:\\ is" an apport of error checking in node/Bob. Its not 
actually the console achieving anything.

Internally I think node based systems use "\\" to "escape" in paths. When 
things run well you never see it.

J.

Mark S. wrote:
>
> Where is this "path: 'c:\\'" structure located?
>

-- 
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/bff9f5f8-9c6f-45d5-b7ee-70ea057b8ae6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread 'Mark S.' via TiddlyWiki
I imagine this relates to invoking commands from Bob, which I haven't 
studied. Where is this "path: 'c:\\'" structure located? Is it in a 
regular tiddler? 

If it really needs to be hard-coded text, then I think you would need a 
button that would trigger actions that would create the actual text. It 
would be something you need to do whenever updating your configuration, I 
suppose.

-- Mark

On Sunday, June 3, 2018 at 10:28:25 AM UTC-7, @TiddlyTweeter wrote:
>
> Mark S. wrote:
>>
>> I think you need to explain more about your use case.
>>
>
> You are right. The difficulty *IS* explaining it.
>
> Transclusion is so sophisticated in TW many don't realise that when you 
> create macro/variables you are transferring the "transclusion code" into 
> it, not the value, most of the time.
>  
>
>>  You could just create a global macro:
>>
>> \define perry() {{HelloThere!!text}}
>>
>
> Works perfectly in most transclusion contexts. But you can see the issue 
> with that is if you use the macro in a context like a command processor 
> that only accepts literal text... the macro/variable isn't holding the 
> value, but the transclusion code to display it.
>
> path: 'C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_{{$:\\HelloThere!!text}}
> \\index.html'
>  
> I will try layout a more detailed example and be as clear as I can. But I 
> think this starts to illustrates the issue I hope.
>
> Thanks
> 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 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/bb62e423-de41-42e2-b39b-26c748724c11%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread @TiddlyTweeter
Mark S. wrote:
>
> I think you need to explain more about your use case.
>

You are right. The difficulty *IS* explaining it.

Transclusion is so sophisticated in TW many don't realise that that when 
you create macro/variables you are transferring the "transclusion code" 
into it, not the value, most of the time.
 

>  You could just create a global macro:
>
> \define perry() {{HelloThere!!text}}
>

Works perfectly in most transclusion contexts. But you can see the issue 
with that is if you use the macro in a context like a command processor 
that only accepts literal text... the macro/variable isn't holding the 
value, but the transclusion code to display it.

path: 'C:\\bag\\PortableApps\\twMU\\pages\\tw\\tw_{{$:\\HelloThere!!text}}
\\index.html'
 
I will try layout a more detailed example and be as clear as I can. But I 
think this starts to illustrates the issue I hope.

Thanks
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 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/d8514239-677e-4540-8be7-538131f744c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread wjam
you can use the wikify widget where

text='<$view tiddler="your tiddler" field="text"/>'

wjam

-- 
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/f54d098a-e261-49dc-95ad-117070df07bd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread 'Mark S.' via TiddlyWiki
I think you need to explain more about your use case.

You could just create a global macro:

\define perry() {{HelloThere!!text}}

and then use <> anywhere. But I suspect you're trying to do 
something with the text.

Good luck!
-- Mark

On Sunday, June 3, 2018 at 7:28:28 AM UTC-7, @TiddlyTweeter wrote:
>
> I need to get the literal text of a Tiddler into a simple macro/variable. 
> I have studied the documentation (like 
> https://tiddlywiki.com/#Concatenating%20text%20and%20variables%20using%20macro%20substitution)
>  
> but still can't see how to do it ...
>
> *Use Case*
>
> tiddler title: "$:/PerryMason"
> text content: "Paul Drake"
>
> All I want to do is get the *literal plain text* "Paul Drake" in to a 
> variable \defined perry().
>
> Anyone know an easy way to do that?
>
> Help much appreciated
> 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 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/ab920a1d-ae22-44a0-96ea-7d15de28198c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread @TiddlyTweeter
Ciao Diego

Looks part the way there. But I need get the (literal text) value "Paul 
Drake" into a Global Macro <> for use elsewhere. As far as I grasp 
$set use is limited to its context? Excuse my ignorance if I'm wrong.

J. 

On Sunday, 3 June 2018 16:52:56 UTC+2, Diego Mesa wrote:
>
> Hello Josiah,
>
> On Tiddlywki.com if you type:
>
> <$set name="perry" tiddler="HelloThere" field="text">
> hello! <>
> 
>
> You get the literal text of the tiddler HelloThere. Is this what you mean?
>
> On Sunday, June 3, 2018 at 9:28:28 AM UTC-5, @TiddlyTweeter wrote:
>>
>> I need to get the literal text of a Tiddler into a simple macro/variable. 
>> I have studied the documentation (like 
>> https://tiddlywiki.com/#Concatenating%20text%20and%20variables%20using%20macro%20substitution)
>>  
>> but still can't see how to do it ...
>>
>> *Use Case*
>>
>> tiddler title: "$:/PerryMason"
>> text content: "Paul Drake"
>>
>> All I want to do is get the *literal plain text* "Paul Drake" in to a 
>> variable \defined perry().
>>
>> Anyone know an easy way to do that?
>>
>> Help much appreciated
>> 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 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/4d5225f0-7495-4ada-99a7-8f8eaff85c4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw5] Re: Basic Problem -- How to get Tiddler text into a variable (NOT a transclusion)

2018-06-03 Thread Diego Mesa
Hello Josiah,

On Tiddlywki.com if you type:

<$set name="perry" tiddler="HelloThere" field="text">
hello! <>


You get the literal text of the tiddler HelloThere. Is this what you mean?

On Sunday, June 3, 2018 at 9:28:28 AM UTC-5, @TiddlyTweeter wrote:
>
> I need to get the literal text of a Tiddler into a simple macro/variable. 
> I have studied the documentation (like 
> https://tiddlywiki.com/#Concatenating%20text%20and%20variables%20using%20macro%20substitution)
>  
> but still can't see how to do it ...
>
> *Use Case*
>
> tiddler title: "$:/PerryMason"
> text content: "Paul Drake"
>
> All I want to do is get the *literal plain text* "Paul Drake" in to a 
> variable \defined perry().
>
> Anyone know an easy way to do that?
>
> Help much appreciated
> 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 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/43c6711b-cbf1-427d-941b-a7a4dec0a4d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.