[tw] Re: How to change css width with showpopup
Thanks Eric For the explanation - and the example. However there must be something in the stylesheettiddler which keeps the popupcontainer from widening. When I change the width - the image in the tiddler referred to is enlarged - but the container doesn't seem to change. You can see two different popupbuttons here: http://dl.getdropbox.com/u/1064531/SangTimer/SangTimer.html#%5B%5BDu%20kom%20med%20alt%20det%20der%20var%20dig%5D%5D YS Måns Mårtensson On 6 Sep., 04:14, Eric Shulman elsdes...@gmail.com wrote: tiddler ShowPopup with: TiddlerName label tooltip buttonClass width popupClass I've tried like this: tiddler ShowPopup with: [[tiddler title]] [[Button label]] [[Tool tip]] 600em sticky No matter what number I put as with - em or % or px I get no result... Although you can omit the optional parameters (buttonClass, width, popupClass) and allow the default values to be applied (button, auto, and , respectively), macro parameters are processed *positionally*. As a consequence, if you specify a non-default value for an optional parameter, you have to make sure to include a 'placeholder' value for each optional parameter that occurs before it in the macro so that there are the correct order and number of values being passed in the macro. Thus, you must include a value for buttonClass, which occurs just before the width value. Use the literal classname 'button' (the default value), like this: tiddler ShowPopup with: [[tiddler title]] [[Button label]] [[Tool tip]] button 600em sticky enjoy, -e EricShulman 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 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: Default size on Firefox window?
Cool...I'll try that. I'm running Ubuntu on my computer so I don't think it want be any problems, right? :) //Tobbe On 6 Sep, 03:26, Måns humam...@gmail.com wrote: Hejsan Tobbe You can use prism extension for FireFoxhttps://addons.mozilla.org/en-US/firefox/addon/6665 To create a Prism web application from within Firefox. You can manually create web applications using Tools Convert Website to Application. If you do this with your TW - it will be saved as a webapplication. FireFox remembers the size of the window between sessions. Same thing can be accomplished with Google Chrome - here it is built in from the start.. Regards Måns Mårtensson (SweDane) On 5 Sep., 23:20, Tobbe torbjorn.tornqv...@gmail.com wrote: Hi, Is it possible to set a size on firefox when I start TW locally on my computer? Can I set the widht and height somewhere in TW? Thanks for a awesome piece of software...I'm hooked :)) //Tobbe from --- (Sweden) --~--~-~--~~~---~--~~ 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: Default size on Firefox window?
Hi Tobbe I'm sorry about the problems you encounter - The link I sent to you was to the Windows version of the plugin. I can't find a Linuxversion myself- Try to look for it here: https://developer.mozilla.org/en/Prism Here (https://developer.mozilla.org/en/Prism/Installer) it says: The installer should configure the OS to associate *.webapp files with Prism. This means that when you double-click or launch a *.webapp file, Prism is launched and automatically opens the web application. Current Windows and Mac installs automatically associate *.webapp with Prism. I don't know how to make Linux filetype associations - Unless someone here can help - you'll have to ask your question in a linux specific forum. Here you can find a blogpost and discussion of prism for linux: http://labs.mozilla.com/blog/2007/11/prism-prototype-now-available-on-mac-and-linux/ Here's another blogpost which gives an overview of the different SSB: http://www.wpconfig.com/2009/01/02/webapps-as-desktop-apps-with-prism-and-fluid-site-specific-browsers-ssbs/ It seems like Google Chrome and Safari aren't available for Linux yet (not without using Wine anyway - and even if you do - there's a lot of bugs) - so I would keep on looking for a prism solution... Regards Måns Mårtensson On 6 Sep., 10:31, Tobbe torbjorn.tornqv...@gmail.com wrote: Hmm, I get a desktop file on my desktop and when I click on it I get the default startpage, not my TW page. The path that Prism does is /usr/lib/firefox-3.0.13/firefox -app / home/tobbe/.mozilla/firefox/ez5zwo1k.default/extensions/ refrac...@developer.mozilla.org/prism/application.ini -override / home/tobbe/.webapps/geneol...@prism.app/override.ini -webapp geneol...@prism.app and that right but it doesn't work. Am I missing something? I'll try with Chrome now...I'll be back :) //Tobbe On 6 Sep, 10:18, Tobbe torbjorn.tornqv...@gmail.com wrote: Cool...I'll try that. I'm running Ubuntu on my computer so I don't think it want be any problems, right? :) //Tobbe On 6 Sep, 03:26, Måns humam...@gmail.com wrote: Hejsan Tobbe You can use prism extension for FireFoxhttps://addons.mozilla.org/en-US/firefox/addon/6665 To create a Prism web application from within Firefox. You can manually create web applications using Tools Convert Website to Application. If you do this with your TW - it will be saved as a webapplication. FireFox remembers the size of the window between sessions. Same thing can be accomplished with Google Chrome - here it is built in from the start.. Regards Måns Mårtensson (SweDane) On 5 Sep., 23:20, Tobbe torbjorn.tornqv...@gmail.com wrote: Hi, Is it possible to set a size on firefox when I start TW locally on my computer? Can I set the widht and height somewhere in TW? Thanks for a awesome piece of software...I'm hooked :)) //Tobbe from --- (Sweden) --~--~-~--~~~---~--~~ 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: Default size on Firefox window?
I found Prism for Ubuntu/Linux in Add/Remove Programs (yes, it's called that way in Ubuntu also) and I'm able to launch the program but when I try to launch one more time I get this: (hoppas du förstår svenska) Detaljer: Skrivbordsfilen angav inget Exec-fält //Tobbe On 6 Sep, 11:46, Måns humam...@gmail.com wrote: Hi Tobbe I'm sorry about the problems you encounter - The link I sent to you was to the Windows version of the plugin. I can't find a Linuxversion myself- Try to look for it here:https://developer.mozilla.org/en/Prism Here (https://developer.mozilla.org/en/Prism/Installer) it says: The installer should configure the OS to associate *.webapp files with Prism. This means that when you double-click or launch a *.webapp file, Prism is launched and automatically opens the web application. Current Windows and Mac installs automatically associate *.webapp with Prism. I don't know how to make Linux filetype associations - Unless someone here can help - you'll have to ask your question in a linux specific forum. Here you can find a blogpost and discussion of prism for linux:http://labs.mozilla.com/blog/2007/11/prism-prototype-now-available-on... Here's another blogpost which gives an overview of the different SSB:http://www.wpconfig.com/2009/01/02/webapps-as-desktop-apps-with-prism... It seems like Google Chrome and Safari aren't available for Linux yet (not without using Wine anyway - and even if you do - there's a lot of bugs) - so I would keep on looking for a prism solution... Regards Måns Mårtensson On 6 Sep., 10:31, Tobbe torbjorn.tornqv...@gmail.com wrote: Hmm, I get a desktop file on my desktop and when I click on it I get the default startpage, not my TW page. The path that Prism does is /usr/lib/firefox-3.0.13/firefox -app / home/tobbe/.mozilla/firefox/ez5zwo1k.default/extensions/ refrac...@developer.mozilla.org/prism/application.ini -override / home/tobbe/.webapps/geneol...@prism.app/override.ini -webapp geneol...@prism.app and that right but it doesn't work. Am I missing something? I'll try with Chrome now...I'll be back :) //Tobbe On 6 Sep, 10:18, Tobbe torbjorn.tornqv...@gmail.com wrote: Cool...I'll try that. I'm running Ubuntu on my computer so I don't think it want be any problems, right? :) //Tobbe On 6 Sep, 03:26, Måns humam...@gmail.com wrote: Hejsan Tobbe You can use prism extension for FireFoxhttps://addons.mozilla.org/en-US/firefox/addon/6665 To create a Prism web application from within Firefox. You can manually create web applications using Tools Convert Website to Application. If you do this with your TW - it will be saved as a webapplication. FireFox remembers the size of the window between sessions. Same thing can be accomplished with Google Chrome - here it is built in from the start.. Regards Måns Mårtensson (SweDane) On 5 Sep., 23:20, Tobbe torbjorn.tornqv...@gmail.com wrote: Hi, Is it possible to set a size on firefox when I start TW locally on my computer? Can I set the widht and height somewhere in TW? Thanks for a awesome piece of software...I'm hooked :)) //Tobbe from --- (Sweden) --~--~-~--~~~---~--~~ 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: Default size on Firefox window?
Hi again You'll have to associate *.webapp with Prism. Untill you do that linux won't know what to do with the file. You are looking for the execute with sth parameter. You might find it by rightclicking the file on the desktop. Hope you'll find a way... Still you must consider that you loose some of the great advantages of using a full FireFox browser. Something that makes me use the full FireFoxbrowser for TWs is the printpreview option in the filemenu. It's gone when you use prism.. Regards Måns Mårtensson On 6 Sep., 12:09, Tobbe torbjorn.tornqv...@gmail.com wrote: I found Prism for Ubuntu/Linux in Add/Remove Programs (yes, it's called that way in Ubuntu also) and I'm able to launch the program but when I try to launch one more time I get this: (hoppas du förstår svenska) Detaljer: Skrivbordsfilen angav inget Exec-fält //Tobbe On 6 Sep, 11:46, Måns humam...@gmail.com wrote: Hi Tobbe I'm sorry about the problems you encounter - The link I sent to you was to the Windows version of the plugin. I can't find a Linuxversion myself- Try to look for it here:https://developer.mozilla.org/en/Prism Here (https://developer.mozilla.org/en/Prism/Installer) it says: The installer should configure the OS to associate *.webapp files with Prism. This means that when you double-click or launch a *.webapp file, Prism is launched and automatically opens the web application. Current Windows and Mac installs automatically associate *.webapp with Prism. I don't know how to make Linux filetype associations - Unless someone here can help - you'll have to ask your question in a linux specific forum. Here you can find a blogpost and discussion of prism for linux:http://labs.mozilla.com/blog/2007/11/prism-prototype-now-available-on... Here's another blogpost which gives an overview of the different SSB:http://www.wpconfig.com/2009/01/02/webapps-as-desktop-apps-with-prism... It seems like Google Chrome and Safari aren't available for Linux yet (not without using Wine anyway - and even if you do - there's a lot of bugs) - so I would keep on looking for a prism solution... Regards Måns Mårtensson On 6 Sep., 10:31, Tobbe torbjorn.tornqv...@gmail.com wrote: Hmm, I get a desktop file on my desktop and when I click on it I get the default startpage, not my TW page. The path that Prism does is /usr/lib/firefox-3.0.13/firefox -app / home/tobbe/.mozilla/firefox/ez5zwo1k.default/extensions/ refrac...@developer.mozilla.org/prism/application.ini -override / home/tobbe/.webapps/geneol...@prism.app/override.ini -webapp geneol...@prism.app and that right but it doesn't work. Am I missing something? I'll try with Chrome now...I'll be back :) //Tobbe On 6 Sep, 10:18, Tobbe torbjorn.tornqv...@gmail.com wrote: Cool...I'll try that. I'm running Ubuntu on my computer so I don't think it want be any problems, right? :) //Tobbe On 6 Sep, 03:26, Måns humam...@gmail.com wrote: Hejsan Tobbe You can use prism extension for FireFoxhttps://addons.mozilla.org/en-US/firefox/addon/6665 To create a Prism web application from within Firefox. You can manually create web applications using Tools Convert Website to Application. If you do this with your TW - it will be saved as a webapplication. FireFox remembers the size of the window between sessions. Same thing can be accomplished with Google Chrome - here it is built in from the start.. Regards Måns Mårtensson (SweDane) On 5 Sep., 23:20, Tobbe torbjorn.tornqv...@gmail.com wrote: Hi, Is it possible to set a size on firefox when I start TW locally on my computer? Can I set the widht and height somewhere in TW? Thanks for a awesome piece of software...I'm hooked :)) //Tobbe from --- (Sweden) --~--~-~--~~~---~--~~ 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] Fix: not possible to save changes
I've downloaded the last two versions of TiddlyWiki (2.5.2 and 2.5.3). I found that I got an error when I tried to save either version saying: It's not possible to save changes. Possible reasons include: ... To fix this I had to manually edit the empty.html file with NotePad and add a title. The tags are there but it are blank (i.e. title / title). After this, it would replace whatever I put in there with SiteTitle - SiteSubTitle and everything would work normally. I would suggest putting anything in there to resolve this issue. I am using IE7 on Vista. Dan T. --~--~-~--~~~---~--~~ 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: How to turn a hr-seperated list into a table with several columns?
First question, I m not familiar with the term hr-seperated list.. Do you mean a list which has each item separated by a 'hard return' or CarriageReturnLineFeed combination? Or is there some other character string separating the items? If this is a one-time occurrence to take this list and change it,I'd suggest copying the body of the list into an external text file. Then use the text editor (of your choice) to insert a pipe character | as a replacement for the deliminator. Then, manually insert a carriage return after every fifth entry to break the list up into columns. You will probably need to insert several other pipes to finish the task. Another possibility would be to use a language like 'awk' to process the list, but I don't think the learning curve justifies a one-time use. --~--~-~--~~~---~--~~ 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: FiveStarsPlugin, a five stars rating system for tiddlywiki.
How to use file star1.png attached by AttachFilePlugin in html?thank you. img src=[img[star1.png]]does not work. config.macros.rating = { handler: function(place, macroName, params, wikifier, paramString, tiddler) { loadStars(); highlightnum = parseInt((tiddler.fields[rating] || 0)); var starsHtml='html', // 使用网络路径 star='img src=[img[star1.png]] onmouseover=highlight(this.id) onclick=setStar(this.id) onmouseout=losehighlight(this.id) onmouseup=saveStar(id,title) id=%id% title='+tiddler.title+' style=width:30px; height:30px; float:left; /'; for (var i=1; i6; i++) { 2009/9/5 tony cca...@gmail.com On Sep 3, 10:14 pm, Jelly sinoje...@gmail.com wrote: http://sinojelly.tiddlyspot.com/#FiveStarsPlugin Thank you Jelly; it's kinda fun and easy to rate tiddlers. I'm sure there will some social media themes now that tiddlers can be voted upon. I could not see the star images at tiddlyspot, but you may want to look into this thread on embedding images http://groups.google.com/group/TiddlyWiki/browse_thread/thread/b085f143328408d6 or Eric's http://www.tiddlytools.com/#AttachFilePlugin if you want to include the star images within the tiddlywiki. Best, tony --~--~-~--~~~---~--~~ 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] Listing grandchildren older than 30 days
I wish to: A) identify all tiddlers tagged with tag Project B) list all tiddlers tagged Action AND tagged with the project tiddler name from (A) AND with a modification date older than 30 days. C) Repeat (B) for all identified 'project-tiddler-names' in (A) My idea is a fET copy-paste mutilation, but I'm uncertain of syntax etc. And I'm not sure I get (C) to work at all. Would appreciate it if anyone could tell me where I go wrong, if there are more suitable solutions etc. (The particular age-checking part below is correct as it is from Abego's original example [1] ) forEachTiddler where 'tiddler.tags.contains(Project)' script ' var i=0; var acts = new Array(); function oldActs(tiddler) { acts[i]=store.getMatchingTiddlers(Action + tiddler.title); while (acts[i] != acts[acts.length]) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 30); if (acts[i].modified compareDate) return * [[ + acts[i].title + ]]\n; else return ; i++; } } ' write 'oldActs(tiddler)' Thank you! /Mat references: [1] http://tiddlywiki.abego-software.de/#[[List%20all%20Tiddlers%20changed%20in%20the%20last%2030%20days]] --~--~-~--~~~---~--~~ 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: How to turn a hr-seperated list into a table with several columns?
First question, I m not familiar with the term hr-seperated list.. An 'HR-separated list' is a text-based syntax that I've developed and used in numerous TiddlyTools plugins and inline scripts. Basically, it's a tiddler containing lines of text, divided up into 'items' of one or more lines, where each item is separated by a line containing a TW HR (horizontal rule) syntax: newline-4 dashes-newline (i.e., \n\n). Two examples of HR-separated lists: http://www.TiddlyTools.com/#Quotations and http://www.TiddlyTools.com/#MiniBrowserList If the first case, each item is a text entry (a quotation) that can be randomly selected and displayed by QuoteOfTheDayPlugin. In the second case, each item consists of two lines: the first line contains descriptive text, the second line contains a URL. This information is then used by MiniBrowserPlugin to populate the 'bookmarks' list. To parse an HR-separated list in javascript code (plugin or inline script) is easy: var items=store.getTiddlerText(SomeTiddler,).split(\n\n); This creates an array of strings, one for each item in the list. Then, loop over those items to process each one. If each item has multiple lines, you can further split the text into separate lines (i.e., using .split('\n')). For example, to fill the 'bookmarks...' droplist in MiniBrowser: for (var i=0; iitems.length; i++) { var lines=items[i].split(\n); // 1st line=description, 2nd line=URL list.options[list.length] = new Option(lines[0],lines[1]); } where 'list' is an HTML select element (i.e., a droplist/listbox) For Mans' specific use case, you could write something like this using http://www.TiddlyTools.com/#InlineJavascriptPlugin script var out=; var items=store.getTiddlerText(SomeTiddler,).split(\n\n); for (var i=0; iitems.length; i++) { if (i0 i/5==Math.floor(i/5)) out += |\n; // start a new row out += |+items[i]; // add item to row } out += |\n; // end last row return out; /script The script constructs the desired TW table syntax into a string variable (out), and then returns that string. InlineJavascriptPlugin then automatically passes that returned text to the core's wikify() function to render the table into your output. 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 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: Changing the textcolour used by YourSearchPlugin and calendarPlugin
Thanks Eric It's the popupbackground in the calendar I want to change - is config.macros.calendar.todaybg the right parameter? YS Måns Mårtensson On 6 Sep., 14:06, Eric Shulman elsdes...@gmail.com wrote: config.macros.calendar.todaybg = DarkGray' and a variation with semicolon at the end instead - however It doesn't work for me... The left side of an assignment statement is a variable reference. The right side of an assignment statement is a value... in this case, a text string, which must have matching quotes around it. Every JS statement ends with a semi-colon. Thus: config.macros.calendar.todaybg = DarkGray; enjoy, -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: Changing the textcolour used by YourSearchPlugin and calendarPlugin
It's the popupbackground in the calendar I want to change - is config.macros.calendar.todaybg the right parameter? Nope. Those settings are for controlling the background color of each individual date in the calendar. Fortunately, the entire calendar (which is an HTML table element) has been assigned a custom CSS classname of .calendar. Thus, you can apply style changes to the calendar as a whole by using CSS rules, like this: .calendar { background-color:#f00; } enjoy, -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: How to turn a hr-seperated list into a table with several columns?
Hi Eric - this is true magic : - ) Of course *you* would say that it's easy - I only had a hunch - that it ought to be easy - considering what I've seen uptill now!! 2 questions: 1) If I could make it work with any hr-seperated lists like this: tiddler TiddlerContainingScript with SomeTiddlerName It would be even better... I presume it's a matter of changing (SomeTiddler,) to ('$1','') ?? Am I on the right track? 2) My next action with the hr-seperated list would be to add toggletag A and toggletag B to each item - referring to the tiddlerLink - Will it work in the table? YS Måns Mårtensson On 6 Sep., 20:20, Eric Shulman elsdes...@gmail.com wrote: First question, I m not familiar with the term hr-seperated list.. An 'HR-separated list' is a text-based syntax that I've developed and used in numerous TiddlyTools plugins and inline scripts. Basically, it's a tiddler containing lines of text, divided up into 'items' of one or more lines, where each item is separated by a line containing a TW HR (horizontal rule) syntax: newline-4 dashes-newline (i.e., \n\n). Two examples of HR-separated lists: http://www.TiddlyTools.com/#Quotations and http://www.TiddlyTools.com/#MiniBrowserList If the first case, each item is a text entry (a quotation) that can be randomly selected and displayed by QuoteOfTheDayPlugin. In the second case, each item consists of two lines: the first line contains descriptive text, the second line contains a URL. This information is then used by MiniBrowserPlugin to populate the 'bookmarks' list. To parse an HR-separated list in javascript code (plugin or inline script) is easy: var items=store.getTiddlerText(SomeTiddler,).split(\n\n); This creates an array of strings, one for each item in the list. Then, loop over those items to process each one. If each item has multiple lines, you can further split the text into separate lines (i.e., using .split('\n')). For example, to fill the 'bookmarks...' droplist in MiniBrowser: for (var i=0; iitems.length; i++) { var lines=items[i].split(\n); // 1st line=description, 2nd line=URL list.options[list.length] = new Option(lines[0],lines[1]); } where 'list' is an HTML select element (i.e., a droplist/listbox) For Mans' specific use case, you could write something like this using http://www.TiddlyTools.com/#InlineJavascriptPlugin script var out=; var items=store.getTiddlerText(SomeTiddler,).split(\n\n); for (var i=0; iitems.length; i++) { if (i0 i/5==Math.floor(i/5)) out += |\n; // start a new row out += |+items[i]; // add item to row} out += |\n; // end last row return out; /script The script constructs the desired TW table syntax into a string variable (out), and then returns that string. InlineJavascriptPlugin then automatically passes that returned text to the core's wikify() function to render the table into your output. 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 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: How to turn a hr-seperated list into a table with several columns?
tiddler TiddlerContainingScript with SomeTiddlerName I presume it's a matter of changing (SomeTiddler,) to ('$1','') ?? Am I on the right track? Yup. That will work. (note: the with: param above needs to have a : on the end of it) My next action with the hr-seperated list would be to add toggletag A and toggletag B to each item - referring to the tiddlerLink - Will it work in the table? The script output is processed as TW wiki syntax, so any macros, etc. that occur in the list items should be handled when the output is rendered. enjoy, -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: tiddler.title as parameter for a subform in viewTemplate
2) in the viewTemplate I place a tiddler subform with: InTiddler.title But it seems not working i receive a beautiful in place of the hoped list of tiddler The first problem: You can't use macroName param param ... syntax in a *template*... only HTML syntax is supported, with a few extensions... most notably, a special attribute, macro=... that can be included in an HTML element in order to invoke and render TW macro output, like this: div macro=macroName param param param/div Note: the contents of macro=... uses the same syntax as a regular TW macro (i.e., space-separated, bracketed params). The second problem: The TW core global variable that refers to the current tiddler is named tiddler... not inTiddler (which is a ForEachTiddlerPlugin- defined construct), and to pass this value in the tiddler macro you must use the {{...}} syntax to enter a *computed parameter*... so that when the macro is processed, the contained code will be evaluated to get the current tiddler title value, like this: div macro=tiddler [[subform]] with: {{tiddler.title}}/div Also, note the use of [[...]] brackets around the tiddler title param... you can use [[...]] as an alternative to ... or '...', This allows both single- and double-quotes to be used within the tiddler title, if desired. enjoy, -e If you have an idea (or real solution) I'll test it immediately Many thanks' in advance Ph Koenig --~--~-~--~~~---~--~~ 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: How to turn a hr-seperated list into a table with several columns?
Can I automake a hr-seperated list from a normal lineseperated list with quickeditplugin in some way? If the tiddler contains single lines, you could use it as is, by changing the script from var items=store.getTiddlerText($1,).split(\n\n) to just var items=store.getTiddlerText($1,).split(\n); Alternatively, here's some general-purpose code that first tries to split the text on the HR separator... and if only one item results (i.e., there are *no* HR separators in the text), then tries splitting on just a simple newline, allowing either format to be used, as appropriate: var txt=store.getTiddlerText($1,); var items=txt.split(\n\n); if (!items[1]) items=txt.split(\n); enjoy, -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] tiddlyspot security issue?
I have a concern that other private tiddlyspot users might want to check out. I've tried contacting feedb...@tiddlyspot.com in the middle of July and a few days ago about this and have had no response. I set up my private tiddlywiki for google analytics following the guidance here: http://www.hawksworx.com/journal/2007/07/05/tracking-tiddlywiki-with-google-analytics/ Since I had this implemented, I've had three visits from someone in Ichikawa Japan (about 1/mth). Analytics shows me that this person visits the root directory only. Interestingly, the source of the visits come from three different sites with the .jp domain. My site is set to restricted access in the control panel. I have changed my password to see if it would stop the visits and the person was again recorded by analytics. Is it possible for analytics to record a visit for someone who doesn't have a password? It seems far fetched. If this person has happened to have found a back door, then everyone's private site would be at risk, right? Can anyone shed light on this subject? Consider setting up your site with analytics to check if you get visits too. --~--~-~--~~~---~--~~ 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: tiddlyspot security issue?
Since I had this implemented, I've had three visits from someone in Ichikawa Japan (about 1/mth). Analytics shows me that this person visits the root directory only. Interestingly, the source of the visits come from three different sites with the .jp domain. My site is set to restricted access in the control panel. I have changed my password to see if it would stop the visits and the person was again recorded by analytics. If I go to a protected site and enter the wrong password when prompted, it don't get to see the page, but it still is recorded in the server logs as a visit... with an error code of 403 (Forbidden). Are you certain that the reported visits were *successful* at viewing your document content? You might want to directly examine the raw log file data, to check the actual number of bytes that were transferred for each suspicious server request. If it is too small to be the entire document, then it is most likely that the only response from the server was to redirect to TiddlySpot's wrong password page. HTH, -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 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: FiveStarsPlugin, a five stars rating system for tiddlywiki.
than you. On 9月7日, 上午4时47分, Eric Shulman elsdes...@gmail.com wrote: var URL=config.macros.attach.getAttachment(TiddlerName) Then, you can construct the appropriate HTML, like this: star='img src='+URL+' onmouseover=highlight(this.id) ... addendum: If you want installation of AttachFilePluginFormatters to be optional, you can write something like this: var URL=http://.../filename.jpg;; // hard-coded fallback/default if (config.macros.attach) URL=config.macros.attach.getAttachment(TiddlerName); If the plugin is installed, it will use attachments, otherwise it will fall back to using the hard-coded URL. enjoy, -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 -~--~~~~--~~--~--~---