Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Creating a custom form in edit/view template
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Nicolas Syssoieff  
View profile  
 More options Feb 18 2008, 5:40 am
From: "Nicolas Syssoieff" <nicolas.syssoi...@gmail.com>
Date: Mon, 18 Feb 2008 11:40:46 +0100
Local: Mon, Feb 18 2008 5:40 am
Subject: Creating a custom form in edit/view template

Hi all,

A probably very simple question :
In this help page (http://tiddlywiki.org/wiki/HideWhenPlugin_questions) it
explains how you can create custom fields in both viewtemplate and
edittemplate.

My problem is that I can successfully see them both (in edit mode, a field
input waiting for something, in view mode, the "Food:" label, as proposed in
the example), but whatever I input in edit mode, I do not see it while
rendering the tiddler in view mode seconds later.

Technically, I have this in the edittemplate :
<div macro="showWhen tiddler.tags.contains('test')">
  Food: <span macro="edit favouriteFood"></span>
</div>

And this in the viewtemplate :
<div macro="showWhen tiddler.tags.contains('test')">
  Food: <span macro="view favouriteFood"></span>
</div>

Can anyone explain what I'm missing here ?

Thanks
Nicolas

P.S. Is it the same protocol for a checkbox that would apply a tag ? Can I
just insert a <span macro="toggleTag tagName . 'tagName'"></span> line in
the same div, and have, in the edittemplate, checking this box automatically
tag or untag the tiddler with tagName ?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Shulman  
View profile  
 More options Feb 18 2008, 6:55 am
From: Eric Shulman <elsdes...@gmail.com>
Date: Mon, 18 Feb 2008 03:55:49 -0800 (PST)
Local: Mon, Feb 18 2008 6:55 am
Subject: Re: Creating a custom form in edit/view template

> My problem is that I can successfully see them both (in edit mode, a field
> input waiting for something, in view mode, the "Food:" label, as proposed in
> the example), but whatever I input in edit mode, I do not see it while
> rendering the tiddler in view mode seconds later.

>   Food: <span macro="edit favouriteFood"></span>

> Can anyone explain what I'm missing here ?

custom field names MUST be *all lower case*

see this ticket for details:
http://trac.tiddlywiki.org/ticket/356

-e
Eric Shulman
TiddlyTools / ELS Design Studios


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nicolas Syssoieff  
View profile  
 More options Feb 18 2008, 8:27 am
From: "Nicolas Syssoieff" <nicolas.syssoi...@gmail.com>
Date: Mon, 18 Feb 2008 14:27:28 +0100
Local: Mon, Feb 18 2008 8:27 am
Subject: Re: [tw] Re: Creating a custom form in edit/view template

Hi Eric,

This was a tricky one, I was looking everywhere but in this direction :)
Thanks, it works now.

Nicolas.

On Feb 18, 2008 12:55 PM, Eric Shulman <elsdes...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »