get title of current tiddler

549 views
Skip to first unread message

Solodukhin Roman

unread,
Aug 12, 2013, 3:58:28 AM8/12/13
to tiddl...@googlegroups.com
Hi everyone!

I am try to use TW5.
How i can get title of current tiddler?

I try {{tiddler.title}}, but don't work.

Jeremy Ruston

unread,
Aug 14, 2013, 11:51:59 AM8/14/13
to TiddlyWiki
Hi Solodukhin,

Sorry for the late reply.

In TW5, you can get the title of the current tiddler with:

<$view field="title"/>

Best wishes

Jeremy


--
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+...@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/groups/opt_out.
 
 



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

Solodukhin Roman

unread,
Aug 14, 2013, 1:24:17 PM8/14/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Thanks.

I am insert in tiddler text <$view field="title"/>, this is OK.

But my idea do not work.

{{{ [tag[TagName1]]+[tag[TagName2]] }}} - OK
{{{ [tag[<$view field="title"/>]]+[tag[TagName2]] }}} -  do not work



среда, 14 августа 2013 г., 18:51:59 UTC+3 пользователь Jeremy Ruston написал:

Jeremy Ruston

unread,
Aug 15, 2013, 2:53:16 PM8/15/13
to Solodukhin Roman, TiddlyWiki
I am insert in tiddler text <$view field="title"/>, this is OK.

But my idea do not work.

{{{ [tag[TagName1]]+[tag[TagName2]] }}} - OK
{{{ [tag[<$view field="title"/>]]+[tag[TagName2]] }}} -  do not work

Ah, it looks like you are trying to generate a list of all tiddlers that are tagged with the current tiddler and also by "TagName2". Is that right?

If so, it can be accomplished like this:

{{{ [tag{!!title}tag[TagName2]] }}}

a) inner curly braces in a filter operator cause the operand to be retrieved from the specified tiddler text reference
b) the "!!title" text reference refers to the title of the current tiddler

Let me know how you get on,

Best wishes

Jeremy

 


среда, 14 августа 2013 г., 18:51:59 UTC+3 пользователь Jeremy Ruston написал:
Hi Solodukhin,

Sorry for the late reply.

In TW5, you can get the title of the current tiddler with:

<$view field="title"/>

Best wishes

Jeremy


On Mon, Aug 12, 2013 at 8:58 AM, Solodukhin Roman <xrob...@gmail.com> wrote:
Hi everyone!

I am try to use TW5.
How i can get title of current tiddler?

I try {{tiddler.title}}, but don't work.

--
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+...@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/groups/opt_out.
 
 



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

 

Solodukhin Roman

unread,
Aug 16, 2013, 5:16:14 AM8/16/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Ah, it looks like you are trying to generate a list of all tiddlers that are tagged with the current tiddler and also by "TagName2". Is that right?
Yes.This is what I need
 
Everything happened that planned.
{{{ [tag{!!title}tag[TAGNAME2]] +[sort[title]] }}}

Thanks, Jeremy!!!


Sorry, for my bad english, but i continue my
crazy experiments.

I want to get tiddlers thith field P_AGREED = 'TRUE'

{{{ [p_agreed[TRUE]] }}}  - works

not works
{{{ [tag{!!title}tag[TAGNAME2][p_agreed[FALSE]]] +[sort[title]] }}}
{{{ [tag{!!title}tag[TAGNAME2]{[p_agreed[FALSE]]}] +[sort[title]] }}}

Jeremy Ruston

unread,
Aug 16, 2013, 7:18:23 AM8/16/13
to Solodukhin Roman, TiddlyWiki
Sorry, for my bad english, but i continue my crazy experiments.

Your English is much better than my Russian!
 
I want to get tiddlers thith field P_AGREED = 'TRUE'

{{{ [p_agreed[TRUE]] }}}  - works

not works
{{{ [tag{!!title}tag[TAGNAME2][p_agreed[FALSE]]] +[sort[title]] }}}
{{{ [tag{!!title}tag[TAGNAME2]{[p_agreed[FALSE]]}] +[sort[title]] }}}

Try:

 {{{ [tag{!!title}tag[TAGNAME2]p_agreed[FALSE]sort[title]] }}}

Best wishes

Jeremy

Solodukhin Roman

unread,
Aug 20, 2013, 5:51:11 AM8/20/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Jeremy!

Thanks for your answers.

And I have new questions:

1. I have some tiddlers returned by expression "{{{ [p_agreed[TRUE]] }}} ". How i can count this tiddlers?

I want "COUNT {{{ [p_agreed[TRUE]] }}}"

2. How i can create new tiddler with some user-fields, depends from tags?

Example.

TAG1
t1field1
t1field2

TAG2
t2field1
t2field2

i create NewTiddler1, 
assign TAG1 and in auto mode add fields(t1field1, t1field2)
assign TAG2 and in auto mode add fields(t2field1, t2field2)




Tobias Beer

unread,
Aug 20, 2013, 6:11:32 AM8/20/13
to tiddl...@googlegroups.com, jeremy...@gmail.com
Hi Jeremy,

Could you please qualify the construct being used? ...at least I am not quite up to date with that yet.

What is that construct called that you were using?

<$view />

Also, if existing, it would really be great if you could point to the documentation that explains the (new) construct or whatever is new in TW5.

Thanks a lot! ^_^

Cheers, Tobias.

Tobias Beer

unread,
Aug 20, 2013, 6:14:22 AM8/20/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi again,

if existing, please link to the relevant documentation.

Perhaps in a forseeable future it would be great if all this information could be edited in an TiddlyWiki.org type of environment... then I would just hop over there, add the missing bits and make you aware of any edits here.

Cheers, Tobias.

Tobias Beer

unread,
Aug 20, 2013, 6:23:32 AM8/20/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Roman,

1. Seems to ask for a simple count output to the list macro, perhaps as a button that opens a popup showing the actual members when clicked.

2. Sounds like you want certain template tiddlers and then an ability to create a new instance from them. Previously, this type of functionality would have been done using the <<newTiddler>> macro...

http://tiddlywiki.org/#newTiddler

Together with a new-here functionality (see http://mptw.tiddlyspot.com) it may be interesting to be able to do both, create a tiddler that both tags to the one being looked at while also being able to select from a list of available template tiddler-types to clone from.

Cheers, Tobias.

Jeremy Ruston

unread,
Aug 21, 2013, 4:37:57 PM8/21/13
to Solodukhin Roman, TiddlyWiki
Hi Roman
 
1. I have some tiddlers returned by expression "{{{ [p_agreed[TRUE]] }}} ". How i can count this tiddlers?

I want "COUNT {{{ [p_agreed[TRUE]] }}}"

This is definitely needed, and will be added shortly.
 
2. How i can create new tiddler with some user-fields, depends from tags?

Example.

TAG1
t1field1
t1field2

TAG2
t2field1
t2field2

i create NewTiddler1, 
assign TAG1 and in auto mode add fields(t1field1, t1field2)
assign TAG2 and in auto mode add fields(t2field1, t2field2)

There's currently no mechanism within TW5 that could support a feature like this. Can you explain a little more about the use case you are trying to accomplish?

Best wishes

Jeremy

Jeremy Ruston

unread,
Aug 21, 2013, 4:39:55 PM8/21/13
to Tobias Beer, TiddlyWiki, Solodukhin Roman
Hi Tobias

I did some updates to the documentation yesterday that may help. The docs are on GitHub as part of the TW5 repo.

Best wishes

Jeremy

Jeremy Ruston

unread,
Aug 21, 2013, 6:29:28 PM8/21/13
to Solodukhin Roman, TiddlyWiki
Hi Roman

1. I have some tiddlers returned by expression "{{{ [p_agreed[TRUE]] }}} ". How i can count this tiddlers?

I want "COUNT {{{ [p_agreed[TRUE]] }}}"

This is definitely needed, and will be added shortly.

I've just added a new <$count filter="[[blah]]"> widget; you can see it in action in the tag listing in the more/tags sidebar at http://five.tiddlywiki.com/

Best wishes

Jeremy
 
 
2. How i can create new tiddler with some user-fields, depends from tags?

Example.

TAG1
t1field1
t1field2

TAG2
t2field1
t2field2

i create NewTiddler1, 
assign TAG1 and in auto mode add fields(t1field1, t1field2)
assign TAG2 and in auto mode add fields(t2field1, t2field2)

There's currently no mechanism within TW5 that could support a feature like this. Can you explain a little more about the use case you are trying to accomplish?

Best wishes

Jeremy


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

Solodukhin Roman

unread,
Aug 27, 2013, 9:31:22 AM8/27/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Jeremy

Sorry for my slow reply.

I have a problem with count-widget.
If i use <$count filter="[[blah]]"> in tiddler with other text, than all text after widget is invisible.

Example of tiddler in edit-mode

text before
count <$count filter="[[blah]]">
text after
count <$count filter="[[blah]]">
and again text

In  view-mode
text before
count 5
text after
count 5
and again text


Red text is invisible, but should be visible.

Jeremy Ruston

unread,
Aug 27, 2013, 10:28:16 AM8/27/13
to Solodukhin Roman, TiddlyWiki
You need to close the tag of a widget: <$count filter="[[blah]]"/>

Best wishes

Jeremy

Solodukhin Roman

unread,
Aug 27, 2013, 11:26:21 AM8/27/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Thank you.
It works
.

Solodukhin Roman

unread,
Sep 3, 2013, 5:37:37 AM9/3/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi!

I have a list of tiddlers.
I wont add to this list a some editable fields.
This "editable fields" is a "fields of tiddler".

I try this:
<$list filter="[is[current]tagging[]tag[TAG1]!FIELD1[T]]">
<$view field="title" format="link"/>
<$edit tiddler="[current]" index="FIELD1" default="" type="text"/>
<$edit tiddler="[current]" index="FIELD2" default="" type="number"/>
<$edit tiddler="[current]" index="FIELD..." default="" type="date"/>

</$list>

TIDDLER_1  [FIELD1] [FIELD2] [FIELD...]
TIDDLER_2  [FIELD1] [FIELD2] [FIELD...]
TIDDLER_3  [FIELD1] [FIELD2] [FIELD...]

how i can to do this?

Jeremy Ruston

unread,
Sep 3, 2013, 6:39:00 AM9/3/13
to Solodukhin Roman, TiddlyWiki
Hi Soludukhin

If you omit the `tiddler` attribute of the `<$edit>` widget it defaults to the current tiddler. You also need to use the `field` attribute rather than the `index` attribute (the latter is for referencing properties of data tiddlers). So you should be able to write:

<$list filter="[is[current]tagging[]tag[TAG1]!FIELD1[T]]">
<$view field="title" format="link"/> 
<$edit field="FIELD1" default="" type="text"/>
<$edit field="FIELD2" default="" type="number"/>
<$edit field="FIELD..." default="" type="date"/>
</$list>

Best wishes

Jeremy

Tobias Beer

unread,
Sep 3, 2013, 6:41:53 PM9/3/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Jeremy,

Does this...

<$list filter="[is[current]tagging[]
tag[TAG1]!FIELD1[T]]">

translate to: create a list for all tiddlers which...
  • (starting from the current tiddler)
  • tag to it
  • also have TAG1
  • where FIELD1 is NOT equal T
?

If so, then at least the last condition doesn't seem to work.

Also, should an edit field not display the current value next time you load this?

Best wishes, Tobias.

Roman Solodukhin

unread,
Sep 4, 2013, 2:32:31 AM9/4/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Tobias.

I am try the solution proposed by Jeremy. And this work fine.


translate to: create a list for all tiddlers which...
  • (starting from the current tiddler)
  • tag to it
  • also have TAG1
  • where FIELD1 is NOT equal T
?
If so, then at least the last condition doesn't seem to work.

yes, translate right, and this works
Also, should an edit field not display the current value next time you load this?
the value in fields are changed and saved. all fine.
"edit field not display" if the value in FIELD1 equal T.


Roman Solodukhin

unread,
Sep 6, 2013, 2:30:51 AM9/6/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Can I do this for example

<$list filter=".....">
.....
<$edit tiddler="<value_of_current_tiddler_field>_<field_from_tiddler_from_list>_<date>"
           index ="<value_of_current_tiddler_field>_<field_from_tiddler_from_list>_<date>" default="" type="input"/>

</$list>

I want use dinamically tiddler and index value.
how can i do this?


Tobias Beer

unread,
Sep 6, 2013, 5:25:07 AM9/6/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Roman,

Can I do this for example?


<$list filter=".....">
.....
<$edit tiddler="<value_of_current_tiddler_field>_<field_from_tiddler_from_list>_<date>"
           index ="<value_of_current_tiddler_field>_<field_from_tiddler_from_list>_<date>" default="" type="input"/>

</$list>

Not sure if this is possible right now but I can definetely see usecases where it is needed to access the stack of outer elements in such a construct... in a readable manner. Perhaps using an expression like...

!current[0]
— the first in the stack of nested loops

!current.parent
— the next one up in the stack or, depending on the nesting level, even... !current.parent.parent

Not sure on the bang here, I am still struggling to figure out the syntax being used in tw5.

Best wishes, Tobias.

Roman Solodukhin

unread,
Sep 6, 2013, 5:53:22 AM9/6/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Tobias.

I try many various combinations of syntax (with brackets and without), but the "tiddler" and "index" always interpreted as static text.

Roman Solodukhin

unread,
Sep 12, 2013, 12:02:18 PM9/12/13
to tiddl...@googlegroups.com, Solodukhin Roman, jeremy...@gmail.com
Hi Jeremy.

Is there a possibility to use dinamic index in current version TW5?
Will you planning to add dinamic index or tiddler_name?

Example:

Jeremy Ruston

unread,
Sep 14, 2013, 12:00:09 PM9/14/13
to Roman Solodukhin, TiddlyWiki
Hiya Roman and Tobias

Sorry for the late reply.

There isn't (currently) a way to access anything but the top entry in the stack of current tiddlers. As Tobias says, I think it will be necessary for certain use cases.

Best wishes

Jeremy

Reply all
Reply to author
Forward
0 new messages