[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread markhylton2
Mike,

I tried to use <$wikify> ... and couldn't figure out how to use it 
correctly, so I don't know if it could have worked or not. On the other 
hand, I've gotten my current problem(s) resolved (see later posts in this 
thread), so I won't look further into this, for now anyway.

I much appreciate your suggestion and help, however!

Sincerely,

~Mark

On Thursday, February 22, 2018 at 9:09:26 AM UTC-5, Michael Wiktowy wrote:
>
> Look up <$wikify>. It is like <$set> but it renders/evaluates the value to 
> the variable rather than just storing it for further rendering in another 
> context (or not rendering like in one of your cases). So you get to choose 
> where the value gets set in stone. I had a similar issue recently and that 
> is how I got around it.
>
> /Mike
>

-- 
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/af1bd07a-74a3-49a1-92af-8ad4bd820f0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread markhylton2
Stephan,

BOTTOM LINE: Things are now working as I need them to be working. Project 
number in the title was dropped. "Inheriting" a field value (the project 
number, in this case) in a new tiddler was added.

I think it is more important to have the date/timestamp in the title (to 
help keep titles unique, and to easily organize them by date), than to have 
the project number in the title. While I would still like the project 
number there, I'm dropping this requirement. Thank you for asking your 
questions, as they forced me to re-evaluate my true needs.

Being able to "inherit" the project number from the host/parent tiddler 
when creating a new tiddler is, however, important for other kinds of 
tiddler organization. You've shown how this can be done; I'll have to 
research why this works because it emphasizes my lack of understanding of 
TW and scope of values.

I've chosen to not explore your auto-incrementing project number, but I 
appreciate the suggestion.

As a result, I've got things working the way I need them to work. At least 
until I come with a new requirement.

Thanks again!

~Mark

P.S. How are these posts marked as "Complete", so other helpful folks don't 
have to go through everything just to find out the problem is resolved?

On Thursday, February 22, 2018 at 12:31:41 PM UTC-5, Stephan Hradek wrote:
>
>
>
> Am Donnerstag, 22. Februar 2018 17:20:55 UTC+1 schrieb Stephan Hradek:
>>
>> Can you test, what you attempted on tiddlywiki.com and post all the 
>> tiddlers here so that I can see and aybe correct?
>>
>> For your previous example, it is an easy fix:
>>
>> Tiddler 1 fields:
>>
>>> Title:hostTiddler
>>> projectnumber:12345
>>> Text:{{||newProjectEntryPB}}
>>>
>>
>> Tiddler 2 fields:
>> Title:newProjectEntryPB
>> Text:\define projecttitle() $(todaynow)$, $(projectnum)$, Project entry:
>>
>> <$set name="todaynow" value=<>>
>> <$set name="projectnum" value={{!!projectnumber}}>
>>
>> Need a new project entry? Click this button and a project tiddler will be 
>> created:
>> <$button>
>>   New project entry
>>   <$action-sendmessage
>>  $message="tm-new-tiddler"
>>  title=<>
>>   />
>> 
>>
>> 
>>
>> Of course this doesn't fix the timestamp, but the projectnumber is in.
>>
>
> Ah! And for an auto-incremented projectnumber you saw my "Quick & Dirty" 
> example above? 
>

-- 
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/7ffe6fa6-3583-429f-bb99-30de93548c9f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek


Am Donnerstag, 22. Februar 2018 17:20:55 UTC+1 schrieb Stephan Hradek:
>
> Can you test, what you attempted on tiddlywiki.com and post all the 
> tiddlers here so that I can see and aybe correct?
>
> For your previous example, it is an easy fix:
>
> Tiddler 1 fields:
>
>> Title:hostTiddler
>> projectnumber:12345
>> Text:{{||newProjectEntryPB}}
>>
>
> Tiddler 2 fields:
> Title:newProjectEntryPB
> Text:\define projecttitle() $(todaynow)$, $(projectnum)$, Project entry:
>
> <$set name="todaynow" value=<>>
> <$set name="projectnum" value={{!!projectnumber}}>
>
> Need a new project entry? Click this button and a project tiddler will be 
> created:
> <$button>
>   New project entry
>   <$action-sendmessage
>  $message="tm-new-tiddler"
>  title=<>
>   />
> 
>
> 
>
> Of course this doesn't fix the timestamp, but the projectnumber is in.
>

Ah! And for an auto-incremented projectnumber you saw my "Quick & Dirty" 
example above? 

-- 
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/98a6be1c-23ee-4f29-9485-2cc8dd87fd07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
Can you test, what you attempted on tiddlywiki.com and post all the 
tiddlers here so that I can see and aybe correct?

For your previous example, it is an easy fix:

Tiddler 1 fields:

> Title:hostTiddler
> projectnumber:12345
> Text:{{||newProjectEntryPB}}
>

Tiddler 2 fields:
Title:newProjectEntryPB
Text:\define projecttitle() $(todaynow)$, $(projectnum)$, Project entry:

<$set name="todaynow" value=<>>
<$set name="projectnum" value={{!!projectnumber}}>

Need a new project entry? Click this button and a project tiddler will be 
created:
<$button>
  New project entry
  <$action-sendmessage
 $message="tm-new-tiddler"
 title=<>
  />




Of course this doesn't fix the timestamp, but the projectnumber is in

-- 
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/ef28c98f-d028-4faf-b403-607425f426a3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread markhylton2
Good morning, Stephan,

BOTTOM LINE: a journal tiddler will work, I just have to drop the project 
number requirement in the title. Consider that done. *I still want* (and 
don't know how) to get a field value from the storyTiddler.

Ever do something because it was the first way you concepted it, only to 
struggle? And then someone comes along and asks, "why that way, why not 
another?"? :)

Well ... there's part of your answer. My first thought was to display, as 
part of the tiddler title, a time/date stamp (keeps titles unique), along 
with the project number the entry was about, and a bit of text for 
additional information.

As I learn more about TW filtered lists, the need for the project number in 
the title diminishes, as long as that project number is available elsewhere 
in a tiddler for filtering use. And, I can easily include text literals 
with the time/datestamp tiddler name.

HOWEVER, I still have use cases for getting a field value from a host 
tiddler (the storyTiddler?) for use in generating a new tiddler. In this 
case, I want to get the value of the projectnumber field from the host 
tiddler and put it in a projectnumber field of a new tiddler. I can already 
do something like this, if 1) the host tiddler's title IS the project 
number (and nothing else), and 2) I use that title as the value for the new 
tiddler's projectnumber field. This works, but feels clunky because a title 
is not the same (conceptually) as a project number, even though they are 
the same (textually) in this particular use case.

While a tag seems to be the best way to provide inclusion of a tiddler into 
a larger set, there might be multiple tags, and how am I to know which one 
is a project number and which ones are not? A projectnumber field seems to 
be a better way to denote inclusion into a project set, in this case. So, I 
want to use a field for a project number, and not rely solely on tags to 
contain the project number. (This opens up the question of best uses for 
tags versus fields.)

In any case, thank you for looking at this and asking your question. A 
second look from a different point of view is frequently valuable, and it 
gets me out of a thinking rut I didn't realize I was in.

Thanks again!

~Mark


On Thursday, February 22, 2018 at 4:44:16 AM UTC-5, Stephan Hradek wrote:
>
> Before taking too many steps and making it overly complicated: Have you 
> thought about utilising a Journal tiddler?
>
> Take a look at "Making a custom journal button 
> "
>  
>
>

-- 
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/97503923-e195-4f6a-bae5-e99c98e04764%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
A quick & Dirty example.


tiddler: New Button
projecttitle (required field): "Project #1, -0MM-0DD 0hh:0mm:0ss"
text:
\define journalButton()
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:
/language/Buttons/NewJournal/Caption}} class=<>>
<$action-sendmessage $message="tm-new-tiddler" title=<> tags="$(journalTags)$" text="$(journalText)$"/>
<$list filter="[prefix[yes]]">
{{$:/core/images/new-journal-button}}

<$list filter="[prefix[yes]]">
<$text text={{$:/language/Buttons/NewJournal/
Caption}}/>

<$action-increment $reference="New Project!!projecttitle"/>

\end
<$set name="journalTitleTemplate" value={{New Project!!projecttitle}}>
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
<>


I took the complete code from the $:/core/ui/Buttons/new-journal tiddler 
and just changed

"$:/config/NewJournal/Title" to "New Project!!projecttitle"
and added <$action-increment $reference="New Project!!projecttitle"/>
which requires you  to have my action-increment plugin installed

The Projectnumber will increase with every click and the title will be 
something like "Project #1, 2018-02-022 13:14:15".

-- 
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/092a8c0d-807e-483a-bf77-ef7de7962687%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[tw] Re: How to concatenate < and a tiddler field value for use as a new tiddler title

2018-02-22 Thread Stephan Hradek
Before taking too many steps and making it overly complicated: Have you 
thought about utiolising a Journal tiddler?

-- 
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/ce924dfe-345a-4274-aa0e-5bc9c9788754%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.