[TW5] creating journal tiddlers with automatically generated titles github/Tiddlywiki5 issue #336

222 views
Skip to first unread message

Philip Coltharp

unread,
Oct 4, 2014, 11:23:13 AM10/4/14
to tiddly...@googlegroups.com
Hello all,
I am proposing code to answer issue 336 (https://github.com/Jermolene/TiddlyWiki5/issues/336) to support creating journal tiddlers with automatically generated titles.  

I am very new.  I'm not "down" with the culture in this dev community, so I welcome any advice that would help the cause.


Sincerely Grateful,
Philip Coltharp

----------------------------------------------------------------------------------------------------------


WidgetMessage: tm-new-journal-tiddler


 

The new journal tiddler message is similar to the new tiddler message. It...

  1. creates a new draft tiddler
  2. adds the new tiddler to the current story
  3. uses a required reference to a given tiddler as a template for the new tiddler, coping tags, fields, title and text from the template to the new tiddler
  4. uses a field, named "title_template", if it exists in the template, to create a title. Date and time codes are allowed in this field for which date and time information is filled in based on the current date and time of of the tiddler's creation.

This message takes the following properties by the event object:

NameDescription
paramTitle of a tiddler to use as a template for the new tiddler. Unlike new tiddler message, this is required.
navigateFromTitleTitle of the tiddler from which the navigation to the new tiddler was initiated. Not required.
  • The reference to the tiddler template given in the event object property param must reference an existing tiddler or else the event does nothing.
  • The field "title_template" is not required to be a field in the template tiddler. If it exists the value will be parsed and it becomes the title. If not, the event defaults to the behavior of a new tiddler message.
  • The field "title_template" is not copied to the new tiddler.
  • Similar to new tiddler messages, the new journal tiddler message can be generated with the LinkWidget or theButtonWidget.
  • The new journal tiddler message is handled by the NavigatorWidget.
  • The date and time codes work similarly to that of Classic Tiddlywiki. A guide to use these codes is in the Classic Tiddlywiki documentation under the tiddler DateFormats.

Example

To make a button that creates a new journal tiddler, tagged "journal", and with the title "Journal 10/4/2014 07:00", first create a separate tiddler called "JournalTemplate" with the tag "journal" and also a field, named "title_template", with the value "Journal MM/DD/YYYY hh:0mm". Secondly, in any other tiddler, use codes like the following to make a button to call a new instance of the journal tiddler:

<$button message="tm-new-journal-tiddler" param="JournalTemplate">New Journal</$button>

Jeremy Ruston

unread,
Oct 4, 2014, 1:31:49 PM10/4/14
to TiddlyWikiDev
Hi Philip

That's great thank you - I've replied in detail on the GitHub ticket,

Best wishes

Jeremy



--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.



--
Jeremy Ruston
mailto:jeremy...@gmail.com

Philip Coltharp

unread,
Oct 7, 2014, 7:56:27 PM10/7/14
to tiddly...@googlegroups.com
Re: https://github.com/Jermolene/TiddlyWiki5/issues/336

 I do not believe that I have expressed contention against any idea you mentioned in your last post or any other posts posted in the issue.

Please excuse me if I have offended you or overstepped any boundaries.  Please believe, if I did this against you, i did so believing that I was doing the exact the opposite.






Jeremy Ruston

unread,
Oct 8, 2014, 4:04:01 AM10/8/14
to TiddlyWikiDev
 Hi Philip

Please excuse me if I have offended you or overstepped any boundaries.  Please believe, if I did this against you, i did so believing that I was doing the exact the opposite.

Gosh, not at all, I wasn't in the least offended. My apologies if I gave that impression. I was just trying to give a clear answer to explain why I was leaving a perfectly good fix on the table in favour of a (currently) hypothetical one.

Feedback of almost any sort is incredibly helpful to me in perfecting TiddlyWiki, and I hate to have inadvertently put you off.

Best wishes

Jeremy

 






--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywikidev.
For more options, visit https://groups.google.com/d/optout.

Philip Coltharp

unread,
Oct 8, 2014, 5:54:15 AM10/8/14
to tiddly...@googlegroups.com
communicating via e-mail is hard work.



--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywikidev/9UysM0BUJM8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywikide...@googlegroups.com.

Jeremy Ruston

unread,
Oct 8, 2014, 5:57:25 AM10/8/14
to TiddlyWikiDev
On Wed, Oct 8, 2014 at 10:54 AM, Philip Coltharp <colthar...@gmail.com> wrote: 
communicating via e-mail is hard work.

Indeed. It's one of the reasons that we instituted the regular TiddlyWiki hangouts, I hope you'll be able to join one of the sessions. They happen every Tuesday at 4pm BST (ie, UTC+1). There's a playlist of previous hangouts here (112 hours of them!):


I announce each upcoming hangout via a message to the main TiddlyWiki group.

Best wishes

Jeremy
Reply all
Reply to author
Forward
0 new messages