Unable to modify custom fields

36 views
Skip to first unread message

Koen

unread,
Sep 22, 2007, 6:40:00 AM9/22/07
to TiddlyWiki
Hi,

first post in the TW group.

Part of tiddlywiki usage is maintaining a todo-list.

I'm struggling a bit with the custom fields however (to store status,
progress, ...). After finding some reports that filed names can only
be lower case I can now succesfully see them in both the edit and view
template (using the HideWhenPlugin). I can save some values in them at
first, but I'm unable to change them afterwards.

Does that ring a bell with anyone?

regards

Koen

wolfgang

unread,
Sep 22, 2007, 6:57:33 AM9/22/07
to TiddlyWiki

wolfgang

unread,
Sep 22, 2007, 7:07:43 AM9/22/07
to TiddlyWiki
On a second thought - I'm using fields also for storing contact data
with the following templates (not necessary, but the use of
TaggerPlugin of http://tw.lewcid.org/ is included in these templates):

ContactEditTemplate:

<!--{{{-->
<div class='title' style='float: left;' macro='view title'></div>
<div class='toolbar' style='float: right;' macro='toolbar +saveTiddler
fullscreen -cancelTiddler deleteTiddler wikibar autosizeEditor'></div>
<div class='tagClear editor' macro='edit title'></div>
<span macro='tagChooser'></span><span macro='edit tags'></span>
<b>Name:</b> <span macro="edit name"></span><br>
<b>Email:</b> <span macro="edit email"></span><br>
<b>Phone:</b> <span macro="edit phone"></span><br>
<b>Handy:</b> <span macro="edit handy"></span><br>
<b>Street:</b> <span macro="edit street"></span><br>
<b>City:</b> <span macro="edit city"></span><br>
<b>State:</b> <span macro="edit state"></span><br>
<b>Country:</b> <span macro="edit country"></span><br>
<b>Webpage:</b> <span macro="edit webpage"></span><br>
<b>Note:</b> <span macro="edit note"></span><br>
</div>
<div class='tagClear editor' macro='edit text'></div>
<!--}}}-->


ContactViewTemplate:

<!--{{{-->
<div>
<span class='title' style='float:left;' macro='view title'></span>
<span style='float:left;' macro='dropTagging
"" {{config.macros.dropTagging.dropdownchar}}'></span>
<span style='float:right;' class='subtitle'>
<span macro='view modifier link'></span>,
created <span macro='view created date [[DD mmm YY]]'></span>
</span>
<span class='toolbar' style='clear:right;margin-top:1px;float:right;'
macro='toolbar +editTiddler fullscreen -closeTiddler closeOthers
deleteTiddler top > fields syncing permalink references jump'>
<span macro='tagger label:"tag"'></span>
</span>
</span>
<div class='tagClear'></div>
</div>
<table><tr>
<td style='text-align:right'><b>Name:</b></td>
<td><span macro="view name wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Email:</b></td>
<td><span macro="view email wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Phone:</b></td>
<td><span macro="view phone wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Handy:</b></td>
<td><span macro="view handy wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Street:</b></td>
<td><span macro="view street wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>City:</b></td>
<td><span macro="view city wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>State:</b></td>
<td><span macro="view state wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Country:</b></td>
<td><span macro="view country wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Webpage:</b></td>
<td><span macro="view webpage wikified"></span></td>
</tr><tr>
<td style='text-align:right'><b>Note:</b></td>
<td><span macro="view note wikified"></span></td>
</tr></table>
</div>
<div class='tagClear viewer' macro='view text wikified'></div>
<!--}}}-->

W.

On 22 Sep., 12:57, wolfgang <wolfgangl...@gmail.com> wrote:
> Welcome Koen,
>
> Try FieldsEditorPlugin:
>

> http://visualtw.ouvaton.org/VisualTW.html#%5B%5BFieldEditor%20Plugin%...

Koen Vermoesen

unread,
Sep 22, 2007, 8:03:07 AM9/22/07
to Tiddl...@googlegroups.com
Hi Wolfgang,

Thanks for your quick reply.

The FieldsEditorPlugin lets me change my fields indeed. Modifying them via the edittemplate still doesn't function however. Well, at least I have a work around. (I can always ditch the edittemplate if it is not ever going to work.)

EditListBox macro looks promising to. Status (ongoing, canceled, ...) and priority (low, medium, ...) are all fields with a limited number of possible values...

Koen
--
Koen Vermoesen
Idevoordelaan 19
9400 Okegem (Ninove)
koen.ve...@gmail.com

wolfgang

unread,
Sep 22, 2007, 8:15:06 AM9/22/07
to TiddlyWiki
If you would adjust the ContactEditTemplate to your needs (ie. your
field names) it would give you input fields for simply typing your
values in your custom fields. And no Plugins needed.

I use it with http://www.tiddlytools.com/#TaggedTemplateTweak for
having to switch between templates according to tags.

W.


On 22 Sep., 14:03, "Koen Vermoesen" <koen.vermoe...@gmail.com> wrote:
> Hi Wolfgang,
>
> Thanks for your quick reply.
>
> The FieldsEditorPlugin lets me change my fields indeed. Modifying them via
> the edittemplate still doesn't function however. Well, at least I have a
> work around. (I can always ditch the edittemplate if it is not ever going to
> work.)
>
> EditListBox macro looks promising to. Status (ongoing, canceled, ...) and
> priority (low, medium, ...) are all fields with a limited number of possible
> values...
>
> Koen
>

> On 9/22/07, wolfgang <wolfgangl...@gmail.com> wrote:
>
>
>
>
>
> > On a second thought - I'm using fields also for storing contact data
> > with the following templates (not necessary, but the use of

> > TaggerPlugin ofhttp://tw.lewcid.org/is included in these templates):

> koen.vermoe...@gmail.com

Eric Shulman

unread,
Sep 22, 2007, 9:35:35 AM9/22/07
to TiddlyWiki
> I'm struggling a bit with the custom fields however (to store status,
> progress, ...). After finding some reports that filed names can only
> be lower case I can now succesfully see them in both the edit and view
> template (using the HideWhenPlugin). I can save some values in them at
> first, but I'm unable to change them afterwards.
>
> Does that ring a bell with anyone?

There is a bug in TW2.2.5, whereby custom fields values can only be
set when they are uninitialized. Once you have stored a custom field
value, subsequent changes to that value are NOT being saved.

This bug does not exist in TW2.2.4, and was introduced by a change to
the core's refreshTiddler() function. I have notified Martin Budden
(who made the change), and he is looking into a fix, but one it not
yet available.

In the mean time, reverting to using TW2.2.4 is probably your best
workaround.

-e
Eric Shulman
TiddlyTools / ELS Design Studios

wolfgang

unread,
Sep 22, 2007, 10:08:57 AM9/22/07
to TiddlyWiki
> There is a bug in TW2.2.5, whereby custom fields values can only be
> set when they are uninitialized. Once you have stored a custom field
> value, subsequent changes to that value are NOT being saved.
>

Indeed, haven't mentioned that yet. In a TW 2.2.4 - where I use fields
for contact details - it works fine. But in a TW 2.2.5 - once a value
entered - it doesn't save any change anymore.

W.

Eric Shulman

unread,
Sep 22, 2007, 2:52:53 PM9/22/07
to TiddlyWiki
Reply all
Reply to author
Forward
0 new messages