I was trying to think about replacing the link to the missing tiddler with a newTiddler button for its creation
I thought that a this might be done with jQuery. 1) select the link 2) get the title for the newTiddler button 3) replace html code for a link with <<newTiddler title:'title of new tiddler'>> using [1] jQuery's .html Potential problems might be that if you didn't want to create the tiddler; the edit view could look cluttered if the edit text was changed from a link to a newTiddler macro, with its attributes like title and label. Eric's solution could be make to look like a newTiddler button, with CSS. Alex [1] http://fnd.lewcid.org/tmp/jQueryAPI.html#html On 30 May 2010 21:23, Eric Shulman <[email protected]> wrote: > The behavior when a link is clicked, whether the tiddler exists or > not, it to *display* the tiddler in the story column. Once displayed, > it is then a separate user-made decision to actually edit that > tiddler. Of course, if the tiddler doesn't exist, there's generally > nothing to display (hence, the default "double-click to create" > text). However, this is not always the case. > > For example, some people modify the default text to provide > alternative informational messages (e.g., step-by-step instructions > for creating/editing tiddlers) to help their user's learn how to use > the document more effectively, and some TW documents use custom > ViewTemplate definitions that can be used to set tiddler values > *without* entering "edit mode" (e.g, > http://www.tiddlytools.com/#QuickNote) > > In addition, this plugin: > http://www.TiddlyTools.com/#MissingTiddlersPlugin > can display alternative outputs for particular tiddler titles (or > patterns of tiddler title) so that different missing tiddlers can have > different behaviors. This enhanced handling is triggered by modifying > the default tiddler text so that a custom macro, > <<missingTiddlers ...>>, is rendered any time a non-existing tiddler > is displayed. > > With the above issues in mind, I think perhaps that others have mis- > interpreted your question, and that you are actually asking for a > change in the *behavior* when a non-existing tiddler is displayed > rather than simply wanting to change or eliminate the default text. > > > Now when i click on the billtest link... > > Why does it not create the tiddler and open the new tiddler in edit > > mode? > > The behavior you suggest seems reasonable... as a custom alternative > to the existing default handling. > > First, you'll need > http://www.TiddlyTools.com/#InlineJavascriptPlugin > > Then, create a tiddler, tagged with 'systemConfig', containing: > ------------ > config.views.wikified.defaultText ='<script> var > here=story.findContainingTiddler(place); > > story.displayTiddler(here.previousSibling,here.getAttribute("tiddler"),DEFAULT_EDIT_TEMPLATE); > </script>'; > ------------ > note: ignore GoogleGroups word-wrapping.. the above should be all on > *one line* > > Save-and-reload your document. From then on, whenever the default > text for a non-existing tiddler is displayed, the above 'inline > script' will be invoked to automatically re-display the tiddler using > the EditTemplate (i.e. start "edit mode") > > That should do it.... > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios > > -- > You received this message because you are subscribed to the Google Groups > "TiddlyWiki" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<tiddlywiki%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/tiddlywiki?hl=en. > > -- http://www.multiurl.com/g/64 -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tiddlywiki?hl=en.

