maketid question for matabele

89 views
Skip to first unread message

David Gifford

unread,
Jul 14, 2014, 12:54:36 PM7/14/14
to tiddl...@googlegroups.com
Hi Matabele

I am enjoying your maketid widget. Just one question (for now):

How can I set the title to be a date and time stamp?

Dave

Matabele

unread,
Jul 14, 2014, 1:27:08 PM7/14/14
to tiddl...@googlegroups.com
Hi David

You'll need Stephan's <<dateTime>> macro -- get the tiddler '$:/macros/skeeve/dateTime.js' from his site: http://tw5magick.tiddlyspot.com/

After that, you can use the macro for the parameter to the 'title=' attribute i.e title=<<dateTime "0MM-0DD 0hh:0mm:0ss">>

regards

Matabele

unread,
Jul 14, 2014, 1:38:42 PM7/14/14
to tiddl...@googlegroups.com
Hi Dave 

There are several options to format the date -- this template gives several of them to choose from:

<$maketid title=<<dateTime  "DDD DDth, MMM 0hh:0mm:0ss">> tags={{!!title}}>
<$button message="tw-new-tiddler">New Jounal Here</$button>
</$maketid>

regards

On Monday, July 14, 2014 6:54:36 PM UTC+2, David Gifford wrote:

David Gifford

unread,
Jul 14, 2014, 1:39:22 PM7/14/14
to tiddl...@googlegroups.com
Thanks Matabele!


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vZoAR8bAWB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.



--
David Gifford
Christian Reformed World Missions, Mexico City

David Gifford

unread,
Jul 14, 2014, 2:07:58 PM7/14/14
to tiddl...@googlegroups.com
Why isn't this working?

<$maketid title=title=<<dateTime "YYYY-MM-0DD 0hh:0mm:0ss">> tags={{!!title}} template="$:/Template/NewIndex" edit="yes"><$button class="btn-invisible" message="tw-new-tiddler">{{$:/Image/newindex.svg}}</$button></$maketid>


On Mon, Jul 14, 2014 at 12:38 PM, Matabele <matabe...@gmail.com> wrote:

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/vZoAR8bAWB8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Matabele

unread,
Jul 14, 2014, 2:12:39 PM7/14/14
to tiddl...@googlegroups.com
Hi David

Double 'title=title=' -- you've obviously been staring at your screen for too long :-)

regards

David Gifford

unread,
Jul 14, 2014, 2:22:05 PM7/14/14
to tiddl...@googlegroups.com
Ouch! I guess I have!

David Gifford

unread,
Jul 14, 2014, 2:26:33 PM7/14/14
to tiddl...@googlegroups.com
Okay last question, I promise,

How can I get it to add two tags, one being

tags="$:/Index"

and the other being the current tiddler's title

tags={{!!title}}

Matabele

unread,
Jul 14, 2014, 2:44:06 PM7/14/14
to tiddl...@googlegroups.com
Hi David

There's other ways of doing it, but the easiest is to use my <$mangletags> widget -- like this:

<$mangletags add={{!!title}}>
<$maketid title="Something" tags="$:/Index" message="tw-mangle-tags">
<$button message="tw-new-tiddler">Make</$button>
</$maketid></$mangletags>

Must set the parameters that way around -- the 'tags=' attribute will treat a title with spaces as separate tags. This can be used as a hack if you know what your'e doing -- for example if one adds "$:/Index" after a CamelCase title (of the originating tiddler), as in "OriginatingTiddler $:/Index" -- the tags parameter will do everything as it will see the title as two separate words and turn them into two tags. But that's a bit fiddly.

Inside "OriginatingTiddler $:/Index"

<$maketid title="Something" tags={{!!title}}>
<$button message="tw-new-tiddler">Make</$button>
</$maketid>

regards

David Gifford

unread,
Jul 14, 2014, 3:31:40 PM7/14/14
to tiddl...@googlegroups.com
Thanks Matabele, actually I want to be able to do this for all tiddlers from the viewtemplate.

Dave

Matabele

unread,
Jul 14, 2014, 3:40:29 PM7/14/14
to tiddl...@googlegroups.com
Hi David

The reason I wrote the widgets was that I found myself resorting to all sorts of hacks to overcome the limitations of the core widgets. The button widget stacks are a little long winded, but get the job done in a straightforward and predictable manner. 

regards
Reply all
Reply to author
Forward
0 new messages