[tw] Re: Title field picks up extra value in Edit Template

2009-08-03 Thread Eric Shulman



On Aug 3, 10:51 am, shavinder shavinderpalsi...@gmail.com wrote:
 Please have a look herehttp://fnd.lewcid.org/tmp/testcase_editTemplate.html

 When a new tiddler is created by clicking the link 'myLabel' in the
 GettingStarted tiddler, the title field in edit mode shows the value
 'myTitle myTag' whereas it should contain ONLY 'myTitle' (the string
 'myTag' is being passed as a tag in the newTiddler macro). Also note
 that the title being shown in view mode is just as it should be i.e.
 'myTitle'.

That is very strange indeed!  Fortunately, I've found a workaround:

If a 'tags' field is defined in the custom edit template, then the tag
value passed in newTiddler doesn't end up in the title field.
Thus, you can add the following to your template:
   div macro='edit tags' style='display:none'/div

Note: although the above trick avoids the problem, I believe that this
*is* a valid TW core issue, and a ticket should be opened...

-e

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Title field picks up extra value in Edit Template

2009-08-03 Thread Ken Girard

Interesting.
As soon as I added div class='editor' macro='edit tags'/div to it
it worked fine.
But that doesn't explain why it is doing it.
It's like the system feels it needs to write the tag somewhere
visible, and can only put it in the visible edit title field.
This same limitation is not carried over to custom fields as I added
one, and it didn't show in the title.

Ken Girard


On Aug 3, 12:51 pm, shavinder shavinderpalsi...@gmail.com wrote:
 Please have a look herehttp://fnd.lewcid.org/tmp/testcase_editTemplate.html

 When a new tiddler is created by clicking the link 'myLabel' in the
 GettingStarted tiddler, the title field in edit mode shows the value
 'myTitle myTag' whereas it should contain ONLY 'myTitle' (the string
 'myTag' is being passed as a tag in the newTiddler macro). Also note
 that the title being shown in view mode is just as it should be i.e.
 'myTitle'.

 black magic?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Title field picks up extra value in Edit Template

2009-08-03 Thread shavinder

Thank you guys, I shall open a ticket.


On Aug 4, 12:08 am, Eric Shulman elsdes...@gmail.com wrote:
 On Aug 3, 10:51 am, shavinder shavinderpalsi...@gmail.com wrote:

  Please have a look herehttp://fnd.lewcid.org/tmp/testcase_editTemplate.html

  When a new tiddler is created by clicking the link 'myLabel' in the
  GettingStarted tiddler, the title field in edit mode shows the value
  'myTitle myTag' whereas it should contain ONLY 'myTitle' (the string
  'myTag' is being passed as a tag in the newTiddler macro). Also note
  that the title being shown in view mode is just as it should be i.e.
  'myTitle'.

 That is very strange indeed!  Fortunately, I've found a workaround:

 If a 'tags' field is defined in the custom edit template, then the tag
 value passed in newTiddler doesn't end up in the title field.
 Thus, you can add the following to your template:
    div macro='edit tags' style='display:none'/div

 Note: although the above trick avoids the problem, I believe that this
 *is* a valid TW core issue, and a ticket should be opened...

 -e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to TiddlyWiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~--~~~~--~~--~--~---