TW5 - fields for contacts?

162 views
Skip to first unread message

David Gifford

unread,
Nov 2, 2013, 8:52:02 AM11/2/13
to tiddl...@googlegroups.com
Hi all

Just wondering if adding fields in tiddlers in TW5 could be used for contacts, something like this:

Fields:

Name: Dave Gifford
Address: My street<br>My City<br>My country
Tel: 1234-5678
email
Twitter
Photo <img src="">

If so, what would I do to have those fields rendered wikified

|Name|
|Address (breaks rendered correctly)|
|see photo rather than the img src gobbledygook|

etc

Jeremy Ruston

unread,
Nov 2, 2013, 12:10:26 PM11/2/13
to TiddlyWiki
Hi Dave

If so, what would I do to have those fields rendered wikified

That all sounds perfectly do-able. To wikify a field other than the text field:

<$transclude title="SampleWizard" field="footer"/>

Let me know how you get on,

Best wishes

Jeremy
 

|Name|
|Address (breaks rendered correctly)|
|see photo rather than the img src gobbledygook|

etc

--
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

David Gifford

unread,
Nov 2, 2013, 10:31:42 PM11/2/13
to tiddl...@googlegroups.com
Is there a way to do it so that it grabs the current tiddler's title? That way I could put it in the viewtemplate, eventually a special viewtemplate for contacts.

Dave


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



--
David Gifford
Christian Reformed World Missions, Mexico City

David Gifford

unread,
Nov 2, 2013, 10:46:38 PM11/2/13
to tiddl...@googlegroups.com
Also, is there a way to grab a field from all the tiddlers tagged with "Personal contacts"?

Dave

Evolena

unread,
Nov 3, 2013, 1:59:07 AM11/3/13
to tiddl...@googlegroups.com
>Also, is there a way to grab a field from all the tiddlers tagged with "Personal contacts"?
Here is what I've done for a prononciation guide tiddler extrated from tiddlers tagged with "lexique" which contained a prononciation field:

\define prononciationMacro(title)
[[$title$]]: <$view tiddler="$title$" field="prononciation"/><br>
\end

<$list filter=[tag[lexique]sort[title]] macro="prononciationMacro"/>

If all yours tiddlers don't have the field and you want to only display those which have it, you can add the filter has[field].

NB. In the macro [[$title$]]: {{$title$!!prononciation}} should work, but I have titles with space caracters and that need a fix

Jeremy Ruston

unread,
Nov 3, 2013, 5:16:00 AM11/3/13
to TiddlyWiki
Hi Evolena

Thank you! It's great to see others getting their heads around these features.

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

unread,
Nov 3, 2013, 5:17:59 AM11/3/13
to TiddlyWiki
Hi Dave

On Sat, Nov 2, 2013 at 8:31 PM, David Gifford <dgif...@crcna.org> wrote:
Is there a way to do it so that it grabs the current tiddler's title? That way I could put it in the viewtemplate, eventually a special viewtemplate for contacts.

Just omit the title attribute:

<$transclude field="footer"/>

On Sun, Nov 3, 2013 at 2:46 AM, David Gifford <dgif...@crcna.org> wrote:
Also, is there a way to grab a field from all the tiddlers tagged with "Personal contacts"?

Do you mean something like this:

<$list filter="[tag[Personal contacts]]">
<$transclude field="footer"/>
</$list>
 
Best wishes

Jeremy

David Gifford

unread,
Nov 3, 2013, 8:01:49 AM11/3/13
to tiddl...@googlegroups.com
Thank you, Evolena and Jeremy.

Kind of picturing two things:

1. A contact tiddler in which name, address, photo, email, etc go in fields and appear wikified in a table. Got that part figured out from Jeremy's first reply.

2. Phone lists and email lists which
a. Grab all contacts in a tag ("Personal contacts")
b. Create a table with two columns
c. First column displays the names (either fields or perhaps tiddler titles so I can click the link and go to the entry and see the rest of the info)
d. Second column displays emails or phone #s

I think I can figure it out from what both of you replied. Thank you very much!

David Gifford

unread,
Nov 3, 2013, 8:21:40 AM11/3/13
to tiddl...@googlegroups.com
Well, I managed this

<$list filter="[tag[personalcontacts]]">
|<$transclude field="nombre"/>|<$transclude field="email"/>|<$transclude field="address"/>|
</$list>

But when I tried this

<$list filter="[tag[personalcontacts]]">
|<$transclude field="title" format="link"/>|<$transclude field="email"/>|<$transclude field="address"/>|
</$list>

I get  a title but not rendered as a link. I even checked the ListWidget tiddler at five.tw.com, and format="link" appears to be a legitimate format option. Corrections?

Dave

Evolena

unread,
Nov 3, 2013, 8:38:45 AM11/3/13
to tiddl...@googlegroups.com
It seems that format="link" works with the view widget but not the transclude one (my first attempt with the macro also works with [[$title$]], but I admit it's less smart). Maybe try:

<$list filter="[tag[personalcontacts]]">
|<$view field="title" format="link"/>|<$transclude field="email"/>|<$transclude field="address"/>|
</$list>

David Gifford

unread,
Nov 3, 2013, 8:41:08 AM11/3/13
to tiddl...@googlegroups.com
Yeah that did it! Thanks Evolena (=Julie)!

Dave


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

Evolena

unread,
Nov 3, 2013, 8:46:57 AM11/3/13
to tiddl...@googlegroups.com
Hum.. I give it a try for my prononciation guide, and it seems that each line of the table is considered as a single line, so that the table doesn't render very well (and with the macro it is even worse, as the "|" of the table are not interpreted).

David Gifford

unread,
Nov 3, 2013, 8:56:10 AM11/3/13
to tiddl...@googlegroups.com
Works fine for me. What do you have in your fields? I use <br> iin my fields where I want breaks.

Dave


On Sun, Nov 3, 2013 at 7:46 AM, Evolena <julie.st...@gmail.com> wrote:
Hum.. I give it a try for my prononciation guide, and it seems that each line of the table is considered as a single line, so that the table doesn't render very well (and with the macro it is even worse, as the "|" of the table are not interpreted).

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

David Gifford

unread,
Nov 3, 2013, 9:03:57 AM11/3/13
to tiddl...@googlegroups.com
Oooohh...I added a second entry and I see what you mean. boo hoo

Dave

David Gifford

unread,
Nov 3, 2013, 9:13:15 AM11/3/13
to tiddl...@googlegroups.com
I managed to add a tabe class called tiddlerinfotable2, like this

<$list filter="[tag[personalcontacts]]">
|tiddlerinfotable2|k

|<$view field="title" format="link"/>|<$transclude field="email"/>|<$transclude field="address"/>|
</$list>

And in Stylesheet set the table td for that class to width: 150px and it worked, so there is at least a little maneuverability. You can't set column widths, so the fix only works for tables where you can put up with columns being of equal width.


--
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/vi0EodFfA4M/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/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages