Hi Måns Thank you for pointing me to this most interesting plugin by Eric Shulman. I have also found the HideWhenPlugin by Simon Baird http://mptw.tiddlyspot.com/#HideWhenPlugin. Both of these plugins can let you have a different EditTemplate or ViewTemplate depending on the tags of the tiddler being edited or viewed. I think this method is going to give me the best results by letting me create a new tiddler with default content and tags and then let me see the tiddler in view mode for entering the data. However, I will first have to figure out how to make a new template, which may take some time.
Cheers Andrew Mc On May 29, 12:34 am, Måns <[email protected]> wrote: > Hi Andrew > > You might have some luck with Eric Shulmans > TaggedTemplateTweakhttp://www.tiddlytools.com/#TaggedTemplateTweak. > It allows you to use a single tag to invoke a customized View- and > edittemplateTemplate (ie timesheettestViewTemplate and > timesheettestEditTemplate) Next action would be to write those > templates embedding the formtemlate into the ViewTemplate like this: > <span class macro='formTiddler TimesheetRecordTemplate'></span>. > All tiddlers tagged timesheettest, will then be opened with the form > - without any form written to the textarea... which I think is > great... > Don't know if this helps - but it's another way of doing it - and > maybe it gives you new possibilities. > I've tried to use formtemplates from/in the edittemplate - but it > didn't work for me... > > Regards Måns Mårtensson > > On May 28, 10:57 am, AndrewMc <[email protected]> wrote: > > > Hi Alex > > > The newJournal macro does pretty much what I did with the newTiddler > > macro. Both create a new tiddler in edit mode. However, what I want is > > for the new tiddler to be created from a form, have certain tags, and > > be shown in view mode. The newTiddlerWithForm macro does this but > > unfortunately does not have a way of specifying tags during the > > tiddler creation. > > > Cheers > > Andrew Mc > > > On May 28, 7:50 pm, Alex Hough <[email protected]> wrote: > > > > A while back i did something with monitoring. The key was to ensure > > > that the new tiddler has a unique name. TiddlyAdvisors recomended the > > > time and date. I experimented with two formats for the dateBelow is > > > what I ended up doing; > > > > ----------------------------------------- > > > Tiddler Monitoring Dashboard > > > ----------------------------------------- > > > > <<newJournal > > > "(YYYY-0MM-0DD 0hh:0mm) S3*" > > > label:"new daily monitoring form Us format" > > > text:{{store.getTiddlerText("DailyMonitoringTemplate")}} > > > tag:"S3*">> <<newJournal > > > > "(DDD DDth MMM YYYY 0hh:0mm) S3*" > > > label:"new daily monitoring form UK format" > > > text:{{store.getTiddlerText("DailyMonitoringTemplate")}} > > > tag:"S3*" > > > > List of existing records > > > <<forEachTiddler > > > where > > > 'tiddler.title.contains("S3*") && tiddler.tags.contains("S3*")' > > > >> > > > > Editing Monitoring Dashboard > > > To edit the daily monitoring form you will need to edit the > > > <<newTiddler "MonitoringTemplate" label:"MonitoringTemplate">> > > > > -------------------------------------- > > > tags: DashBoard > > > ------------------------------------- > > > > You would have to make your own MonitoringTemplate using Udos formTiddler > > > > Alex > > > > (I have used the tag 'S3*' for my monitoring tiddlers. The reason is > > > that in the VSM system 3* is about monitoring) - > > > seehttp://www.allennaleonard.com/PersVSM.html#sys3*ifyouare interested > > > in this method of organisation. > > > > 2009/5/28 AndrewMc <[email protected]>: > > > > > Hi Alex > > > > > Thanks for the suggestion. The TaskTimerPlugin looks interesting but > > > > seems to be most useful for when you are timing activities while you > > > > have access to your Wiki. In my case, however, I want to enter the > > > > times that I have spent doing other activities which are almost always > > > > done away from a computer. So, sadly, TaskTimerPlugin won't solve my > > > > particular problem. > > > > > Cheers > > > > Andrew Mc > > > > > On May 28, 12:17 am, Alex Hough <[email protected]> wrote: > > > >> Try Erics solution: > > > > >>http://www.TiddlyTools.com/#TaskTimerPluginhttp://www.TiddlyTools.com... > > > > >> Alex > > > > >> 2009/5/27 AndrewMc <[email protected]>: > > > > >> > Hi All > > > > >> > I am working on a study project for which I need to record the hours > > > >> > that I work. I am trying to store these "timesheet" records in my > > > >> > wiki . I have set up a template tiddler containing a form with three > > > >> > fields: Date, Hours, and Topic. I wish to have a macro button that > > > >> > enables me to create new timesheet records. I have tried three ways > > > >> > of > > > >> > doing this. I have added Udo's > > > >> > plugin,http://tiddlywiki.abego-software.de/#FormTiddlerPlugin, > > > >> > and used <<newTiddler>> with <<formTiddler>>, and used > > > >> > <<newTiddlerWithForm>>. I have also > > > >> > triedhttp://zaptest.tiddlyspot.com/#NewSavedTiddlerPlugin > > > >> > and the <<newSavedTiddler>> macro. > > > > >> > <<newTiddler > > > >> > title:{{"Time_test_"+(new Date()).formatString > > > >> > ("YYYY0MM0DD_hh0mm0ss")}} > > > >> > label:"New timesheet record button" > > > >> > text:{{"<<formTiddler TimesheetRecordTemplate\>\>"}} > > > >> > tag:"timesheettest">> > > > > >> > <<newTiddlerWithForm > > > >> > TimesheetRecordTemplate > > > >> > "newtiddlerwithform button" > > > >> > [["Time_test_"+(new Date()).formatString("YYYY0MM0DD_hh0mm0ss")]]>> > > > > >> > <<newSavedTiddler > > > >> > text:{{"<<formTiddler [[TimesheetRecordTemplate]]>" + ">"}} > > > >> > tag:"timesheettest" > > > >> > label:'newSavedTiddler button'>> > > > > >> > Of these three methods, the newTiddler method lets me easily specify > > > >> > default content by adding a "<data> </data>" statement to the text, > > > >> > but opens the tiddler in edit mode when I would much rather it be in > > > >> > view mode. The newTiddlerWithForm method lets me specify default > > > >> > content and opens the new tiddler in view mode, but doesn't let me > > > >> > automatically add tags to the new tiddler. The newSavedTiddler opens > > > >> > in view mode and lets me specify default content, but does not let me > > > >> > automatically create a title for the tiddler (instead you need to > > > >> > type > > > >> > in the new title at a prompt). > > > > >> > What I would like to be able to do is to modify newTiddlerWithForm so > > > >> > that this macro accepts a "tags:" parameter. Is it possible to do > > > >> > this? If so, how would I start doing this? > > > > >> > Or, is there another way to achieve what I want to do? > > > > >> > I have found these two threads: > > > >> > 'coding to auto-tag a tiddler created by FormTiddlerPlugin?' > > > >> >http://groups.google.co.nz/group/TiddlyWiki/browse_thread/thread/7212... > > > > >> > 'Automatically adding tags when using NewTiddlerWithForm' > > > >> >http://groups.google.co.nz/group/TiddlyWiki/browse_thread/thread/c642... > > > > >> > Cheers > > > >> > Andrew Mc > > > > >> -- > > > >> t: 0161 442 2202 > > > >> m: 0781 372 50 17 > > > >> skype: alexhough > > > >> delicious: alexhough > > > > -- > > > t: 0161 442 2202 > > > m: 0781 372 50 17 > > > skype: alexhough > > > delicious: alexhough --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

