I have this tiddlyWiki set as my desktop background. I'm using it to keep 
track of my household info for example I have a table of my son's feedings, 
I have a numbered shopping list and a number of other useful tiddlers.

What I need to make this as useful as possible to everyone in the house is 
a simple macro which provides a simple html form into which you can type 
tiddlyWiki style text and when you press enter your input is appended 
unmodified to the end of your tiddler right above said form.

This would allow me to type 

||6:30pm|7:00pm|5oz|


into a form at the bottom of my son's feeding schedule, press enter and 
have the table appended with the new data.

I want to keep this plugin simple because this page constitutes most of 
what I use for the tasks that I do like my "Videos" directory is listed and 
we can open them in VLC by simply clicking on the file. I have links to 
applications, web pages and everything else. I've been trying to achieve 
elegance and ease of use in this design.

I need to just be able to type and press enter. I don't want this plugin to 
format my input in any way. I don't want any options. All you should have 
to do to add this functionality to a tiddler is add <<appendTiddler>>.

I'm sorry about my lack of knowledge in Javascript and html, but I'm 
learning slowly by reading everything that everyone has posted.

If it helps I have this snippet from a comment by Eric L Shulman

var t=store.getTiddler("MyTiddler"); if (!t) return false; 

var txt=t.text+"something to append"; 

var who=config.options.txtUserName; 

var when=new Date(); 

store.saveTiddler(t.title,t.title,txt,who,when,t.tags,t.fields); 


This appears to do exactly what I want, but I don't have the expertise to 
implement this. I suppose this should be in a tiddler named appendTiddler 
and it should be preceded with the following statements:

config.macros.appendTiddler = {};
>
> config.macros.appendTiddler.handler = function 
> (place,macroName,params,wikifier,paramString,tiddler){
>
>
>
What I'm missing is how to make this macro create an html form (preferably 
one line the entire width of the center section which is present with the 
default template). I'm also missing the specifics of parameters and 
parameter passing.

Thank you guys for taking the time to read this as well as simply providing 
a place for me to ask this question.
 

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/tiddlywiki/-/3KmVnnu0q-kJ.
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.

Reply via email to