Ticket #1182 (new defect)

Opened 4 years ago

Last modified 3 years ago

newTiddler macro shows tags inside title, if only title is present in edit template

Reported by: mahemoff Owned by: JeremyRuston
Priority: undefined Milestone: 2.7.1
Component: core Version:
Severity: undefined Keywords:
Cc:

Description (last modified by FND) (diff)

related to  http://trac.tiddlywiki.org/ticket/820

Create "EditTitleTemplate?":

<!--{{{-->
<div class='toolbar' macro='toolbar [[ToolbarCommands::EditToolbar]]'></div>
<div class='title' macro='view title'></div>
<div class='editor' macro='edit title'></div>
<div macro='annotations'></div>
<div class='editorFooter'><span macro='message views.editor.tagPrompt'></span><span macro='tagChooser excludeLists'></span></div>
<!--}}}-->

Then use it in NewTiddler? invocation:

<<newTiddler label:"New App" tag:"good" tag:"app" text:"Hello world" template:"EditTitleTemplate">>

You would expect the title of the new tiddler to be "Hello World", but it's "Hello World good app"

Change History

Changed 4 years ago by mahemoff

You would expect the title of the new tiddler to be "Hello World", but it's "Hello World good app"

Actually, "Hello World" is what it shows if you leave out the "tag" fields. But in fact you would expect the title to be "New Tiddler"; that's what it shows if no template was specified.

Changed 4 years ago by mahemoff

Also, what (incorrectly) goes into the title doesn't get into the field its meant to get into.

i.e. in the example above, text and tags are blank.

Changed 4 years ago by FND

  • summary changed from core - newTiddler macro shows tags inside title, if only title is present in edit template to newTiddler macro shows tags inside title, if only title is present in edit template
  • description modified (diff)
  • milestone set to 2.6

Changed 3 years ago by FND

  • milestone changed from 2.6 to 2.6.1

Changed 3 years ago by MartinBudden

  • milestone changed from 2.6.2 to 2.7.1

Milestone 2.6.2 deleted

Note: See TracTickets for help on using tickets.