[tw] Re: ForEachTiddler
Hi, the above plugin has been working very well !! Want I would like to try and do is incorporate an expiry date on a tiddler. Use a field of some sort to pick the date up and it would then put an icon next to the link to say it has expired ? Would this be possible Thanks On Thursday, November 8, 2012 5:53:56 PM UTC+8, whatever wrote: Hi! Well, this code shows the icon for the whole period. If I understand correctly, you want two different icons for two different periods. Here's the code: forEachTiddler script ' function lastDays(tiddler) { var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else if (tiddler.modified compareDate1) return * [[ + tiddler.title + ]] tiddlerIcons changed [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' w On 8 nov., 10:07, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi and thank you all for your help - Its me not explaining very well so sorry. This is close but I want a different icon showing for the 30 day period and another icon showing for the 60 day mark so when listed it would either show an icon within the 30 day period or a different icon for the 60 day period or other wise no icon if no criteria met. Hope this is possible thank you On Thursday, November 8, 2012 4:27:32 PM UTC+8, whatever wrote: Hey! You complicated stuff a little.:) Or I didn't explain well. Anyway, here's the code: forEachTiddler script ' function lastDays(tiddler) { var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' w On 8 nov., 01:41, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Sorry could you give me an exmaple please, I tried - would this bring up two different Icons so Date 1 could be return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; and Date 2 return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; this is what I tried forEachTiddler where 'tiddler.tags.contains(tag here)' script ' function lastDays(tiddler) { var compareDate1 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; var compareDate2 = new Date(); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n;}' write 'lastDays(tiddler)' And thank you saw the popup text, all done Regards On Wednesday, November 7, 2012 3:41:00 PM UTC+8, whatever wrote: Hi! Yes, you figured it out correctly: compareDate.setDate(compareDate.getDate() - 30); As for a range, you'd need to have to time points, so you need to do some changes: var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) As you can see, there are now two compareDates instead of one and tiddler.modified needs to be between them. The rest is the same. w On 7 nov., 07:29, Philippe De Feularde sa...@burningtastebuds.com wrote: Can I push it - is there a way for another icon for 30 - 60 days ? On Monday, November 5, 2012 7:48:24 PM UTC+8, whatever wrote: Hi! Try the following (beware googlewrap): forEachTiddler script ' function lastDays(tiddler) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 10); if (tiddler.modified compareDate) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n
[tw] Listing old Tiddlers and changing header colour
Hi, I am looking for a way to add a date field to our tiddlers so when they have expired the link can change colour (color) so when they are listed by for each tiddler I can see that the date I have applied to the tiddler is out of date.So for example the tiddler expires on the 1/11/2013 - Come 2/11/2013 the link has change from the standard colour and has gone to a red so when the tiddlers are listed I know that this one needs attention ? Regards Philippe -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: linking to a tiddler via an image
Thank you for reply I will try that out Regards Philippe On Thursday, August 29, 2013 3:39:22 PM UTC+8, Tobias Beer wrote: The iframe makes my life easier - I have a 800 x 800 px image with a list of links to various folders and files.. Don't have to use an iframe. - Another Q, could you email a tiddler page with a link to a page - so when its clicked TW opens up with the relevant page ? Do you have access to the HTML source of that frame? If yes, copy it and paste it into a tiddler while wrapping it htmlTHE HTML SOURCE/html http://tiddlywiki.org/#iFrame As for sending an email of a Tiddler... no, the links run on internal javascript click handlers. What you can send are links to a TiddlyWiki so that it opens with tiddler(s) xyz. http://tiddlywiki.org/#Paramifiers Or, you can just send your TiddlyWiki itself or an exported extract thereof. Cheers, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: linking to a tiddler via an image
Should have tried it out before I posted but yes that's perfect thanks On Monday, September 2, 2013 8:46:30 AM UTC+8, Philippe De Feularde wrote: Thank you for reply I will try that out Regards Philippe On Thursday, August 29, 2013 3:39:22 PM UTC+8, Tobias Beer wrote: The iframe makes my life easier - I have a 800 x 800 px image with a list of links to various folders and files.. Don't have to use an iframe. - Another Q, could you email a tiddler page with a link to a page - so when its clicked TW opens up with the relevant page ? Do you have access to the HTML source of that frame? If yes, copy it and paste it into a tiddler while wrapping it htmlTHE HTML SOURCE/html http://tiddlywiki.org/#iFrame As for sending an email of a Tiddler... no, the links run on internal javascript click handlers. What you can send are links to a TiddlyWiki so that it opens with tiddler(s) xyz. http://tiddlywiki.org/#Paramifiers Or, you can just send your TiddlyWiki itself or an exported extract thereof. Cheers, Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: linking to a tiddler via an image
Hi Tobias, The iframe makes my life easier - I have a 800 x 800 px image with a list of links to various folders and files.. Don't have to use an iframe. - Another Q, could you email a tiddler page with a link to a page - so when its clicked TW opens up with the relevant page ? Regards Philippe On Thursday, August 29, 2013 2:57:58 PM UTC+8, Tobias Beer wrote: Hi Philippe, So you want to link from within an iframe to a document that embeds it? That only works with some dedicated js hooks that are present on both ends. And when both frame and outer document reside on the same domain / folder. Haven't seen such a request yet. (Why) do you have to use an iframe? Tobias. -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] linking to a tiddler via an image
Is it possible to link from an image (hotspot) to a tiddler page ? Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: linking to a tiddler via an image
Thank you for the replies, is there a way to direct link to a tiddler page? I am using an iframe to put a directory image on the front of the wiki. Using fireworks it makes it very easy to administer. We can directly link to folders or files but unable to directly link to a tiddler, not sure if this would be a possibility. Could it be //filename/filemane/TW?? Regards Philippe On Wednesday, August 28, 2013 3:18:08 PM UTC+8, Philippe De Feularde wrote: Is it possible to link from an image (hotspot) to a tiddler page ? Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] link to a tiddler
Hi Hopefully someone can answer my question, Is there a way to say have a picture and have a link direct to a tiddler ? Thanks Philippe -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Linking to tiddlers from hotspot on image
Hello, can we link to other files instead of tiddlers ? - eg google.com, how can this be done ? Thanks Philippe On Saturday, May 9, 2009 5:26:55 PM UTC+8, Mark wrote: Hello All. I have a business process flow diagram (flash swf) with 10 or so hotpots on it that I'd like to open a specified tiddler when clicked on. I created the .swf file using Snagit and can play that swf file in TW using Eric's PlayerPlugin. The problem is that I can successfully open an external URL out on the web, but have not managed to open either a local file or a local tiddler when playing that swf file within TW. I tried the Snagit forums for help on how to get hotspots linking to a local file, but no success. I don't know flash at all, but it must surely be possible using more sophisticated tools than Snagit to create links to local files. So, some questions for this forum:- Are there any TW tools available to create hotspot links to a tiddler off an image. Not a question for this forum, but who knows. Are there free tools available to generate swf files with hotspot links to local files. Thanks Mark -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
Re: [tw] New TW5
Thank you looking forward to it !! On Wednesday, July 10, 2013 4:01:24 PM UTC+8, Jeremy Ruston wrote: Hi Philippe TW5 can be found at http://five.tiddlywiki.com/. It's going to transition from alpha to beta in the next couple of weeks, with the first full release later in the year. It's at the point where it's practical for cautious, exploratory usage. Best wishes Jeremy On Wed, Jul 10, 2013 at 6:38 AM, Philippe de Feularde weddingsc...@gmail.com javascript: wrote: Hi just wondering where we can download the new TW5 and when will it be ready ? Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com javascript:. To post to this group, send email to tiddl...@googlegroups.comjavascript: . Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out. -- Jeremy Ruston mailto:jeremy...@gmail.com javascript: -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] New TW5
Hi just wondering where we can download the new TW5 and when will it be ready ? Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: For each tiddler - with html
Thanks Mans - I have tried this but no luck, I could be doing it incorrectly. What should I be wrapping the forEachTiddler up in ? Thanks On Thursday, May 16, 2013 3:26:52 PM UTC+8, Måns wrote: Hi Philippe Read http://www.tiddlytools.com/#HTMLFormattingPluginInfo Install http://www.tiddlytools.com/#HTMLFormattingPlugin Try again.. Cheers Måns Mårtensson Den torsdag den 16. maj 2013 03.07.51 UTC+2 skrev Philippe De Feularde: Hi , is it possible to have forEachTiddler sortBy tiddler.modified descending write '(index 10) ? * [[+tiddler.title+]]\n : ' with in Html - I have tried several ways but with no luck I have tried Erics plug ins with no luck. I have also showReminders leadtime:35 format:|DIFF|TITLE|TIDDLER| which works fine Regards Philippe -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] For each tiddler - with html
Hi , is it possible to have forEachTiddler sortBy tiddler.modified descending write '(index 10) ? * [[+tiddler.title+]]\n : ' with in Html - I have tried several ways but with no luck I have tried Erics plug ins with no luck. I have also showReminders leadtime:35 format:|DIFF|TITLE|TIDDLER| which works fine Regards Philippe -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] phone number
Hi, I am trying to work a way out to have a list of phone numbers displayed , I would like to search for a name, number or location so it will list the result If I was to search for it would bring up other TW not associated to the phone number list. Could I have another search ? I like http://tiddlywiki.abego-software.de contact list with the fields but how could I get this displayed or to search from? Or is there another solution? thanks Philippe -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] phone number
Hi, I am trying to work a way out to have a list of phone numbers displayed , I would like to search for a name, number or location - I can not use the current search function as it would bring up other TW not associated to the phone number list. I like http://tiddlywiki.abego-software.de contact list with the fields but how could I get this displayed or to search from? Or is there another solution? Thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Script Error
Hi I am getting an error when the wiki loads up - we have to use IE but it says the script has become unresponsive - the error is on some computers but not on others. Could the size of the wiki play apart or could it be a plugin causing it? thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: Script Error
Ok sorted Calander plugin was causing the error On Wednesday, April 10, 2013 11:03:18 AM UTC+8, Philippe De Feularde wrote: Hi I am getting an error when the wiki loads up - we have to use IE but it says the script has become unresponsive - the error is on some computers but not on others. Could the size of the wiki play apart or could it be a plugin causing it? thanks -- You received this message because you are subscribed to the Google Groups TiddlyWiki group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[tw] Re: ForEachTiddler
thank you!! On Thursday, November 8, 2012 5:53:56 PM UTC+8, whatever wrote: Hi! Well, this code shows the icon for the whole period. If I understand correctly, you want two different icons for two different periods. Here's the code: forEachTiddler script ' function lastDays(tiddler) { var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else if (tiddler.modified compareDate1) return * [[ + tiddler.title + ]] tiddlerIcons changed [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' w On 8 nov., 10:07, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi and thank you all for your help - Its me not explaining very well so sorry. This is close but I want a different icon showing for the 30 day period and another icon showing for the 60 day mark so when listed it would either show an icon within the 30 day period or a different icon for the 60 day period or other wise no icon if no criteria met. Hope this is possible thank you On Thursday, November 8, 2012 4:27:32 PM UTC+8, whatever wrote: Hey! You complicated stuff a little.:) Or I didn't explain well. Anyway, here's the code: forEachTiddler script ' function lastDays(tiddler) { var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' w On 8 nov., 01:41, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Sorry could you give me an exmaple please, I tried - would this bring up two different Icons so Date 1 could be return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; and Date 2 return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; this is what I tried forEachTiddler where 'tiddler.tags.contains(tag here)' script ' function lastDays(tiddler) { var compareDate1 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; var compareDate2 = new Date(); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n;}' write 'lastDays(tiddler)' And thank you saw the popup text, all done Regards On Wednesday, November 7, 2012 3:41:00 PM UTC+8, whatever wrote: Hi! Yes, you figured it out correctly: compareDate.setDate(compareDate.getDate() - 30); As for a range, you'd need to have to time points, so you need to do some changes: var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) As you can see, there are now two compareDates instead of one and tiddler.modified needs to be between them. The rest is the same. w On 7 nov., 07:29, Philippe De Feularde sa...@burningtastebuds.com wrote: Can I push it - is there a way for another icon for 30 - 60 days ? On Monday, November 5, 2012 7:48:24 PM UTC+8, whatever wrote: Hi! Try the following (beware googlewrap): forEachTiddler script ' function lastDays(tiddler) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 10); if (tiddler.modified compareDate) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' This should show icons next to tiddlers changed in the last 10 days. Change recent, if you want a different icon. Icon settings are dependent on TiddlerIconsPluginConfig. w On 5 nov., 04:00
[tw] Re: ForEachTiddler
Hi and thank you all for your help - Its me not explaining very well so sorry. This is close but I want a different icon showing for the 30 day period and another icon showing for the 60 day mark so when listed it would either show an icon within the 30 day period or a different icon for the 60 day period or other wise no icon if no criteria met. Hope this is possible thank you On Thursday, November 8, 2012 4:27:32 PM UTC+8, whatever wrote: Hey! You complicated stuff a little.:) Or I didn't explain well. Anyway, here's the code: forEachTiddler script ' function lastDays(tiddler) { var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' w On 8 nov., 01:41, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Sorry could you give me an exmaple please, I tried - would this bring up two different Icons so Date 1 could be return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; and Date 2 return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; this is what I tried forEachTiddler where 'tiddler.tags.contains(tag here)' script ' function lastDays(tiddler) { var compareDate1 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; var compareDate2 = new Date(); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n;}' write 'lastDays(tiddler)' And thank you saw the popup text, all done Regards On Wednesday, November 7, 2012 3:41:00 PM UTC+8, whatever wrote: Hi! Yes, you figured it out correctly: compareDate.setDate(compareDate.getDate() - 30); As for a range, you'd need to have to time points, so you need to do some changes: var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) As you can see, there are now two compareDates instead of one and tiddler.modified needs to be between them. The rest is the same. w On 7 nov., 07:29, Philippe De Feularde sa...@burningtastebuds.com wrote: Can I push it - is there a way for another icon for 30 - 60 days ? On Monday, November 5, 2012 7:48:24 PM UTC+8, whatever wrote: Hi! Try the following (beware googlewrap): forEachTiddler script ' function lastDays(tiddler) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 10); if (tiddler.modified compareDate) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' This should show icons next to tiddlers changed in the last 10 days. Change recent, if you want a different icon. Icon settings are dependent on TiddlerIconsPluginConfig. w On 5 nov., 04:00, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Eric, and a BIG thank you for your quick reply. Im a little confused. when we use ForEachTiddler we are assigning the list with tags so for example forEachTiddler where 'tiddler.tags.contains(``rximag)' so this brings up our list of tiddlers with rximag, after a while there is quite a lot of tiddlers in that section so next to the name we wanted icons which are new so users can see what is new etc... I have imported what you have asked me to import but how do I assign images to the tiddlers that are new etc.. Regards Philippe On Monday, November 5, 2012 9:19:58 AM UTC+8, Eric Shulman wrote: On Nov 4, 4:24 pm, Philippe De Feularde sa...@burningtastebuds.com wrote: Is there a way to highlight new tiddlers with an icon so users can view the newest tiddlers from the list? We use ForEachTiddler so we just want an icon
[tw] Re: ForEachTiddler
Hi Sorry could you give me an exmaple please, I tried - would this bring up two different Icons so Date 1 could be return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; and Date 2 return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; this is what I tried forEachTiddler where 'tiddler.tags.contains(tag here)' script ' function lastDays(tiddler) { var compareDate1 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons settings [[= + tiddler.title + ]]\\n; var compareDate2 = new Date(); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' And thank you saw the popup text, all done Regards On Wednesday, November 7, 2012 3:41:00 PM UTC+8, whatever wrote: Hi! Yes, you figured it out correctly: compareDate.setDate(compareDate.getDate() - 30); As for a range, you'd need to have to time points, so you need to do some changes: var compareDate1 = new Date(); var compareDate2 = new Date(); compareDate1.setDate(compareDate1.getDate() - 30); compareDate2.setDate(compareDate2.getDate() - 60); if ((tiddler.modified compareDate2) (tiddler.modified compareDate1)) As you can see, there are now two compareDates instead of one and tiddler.modified needs to be between them. The rest is the same. w On 7 nov., 07:29, Philippe De Feularde sa...@burningtastebuds.com wrote: Can I push it - is there a way for another icon for 30 - 60 days ? On Monday, November 5, 2012 7:48:24 PM UTC+8, whatever wrote: Hi! Try the following (beware googlewrap): forEachTiddler script ' function lastDays(tiddler) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 10); if (tiddler.modified compareDate) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' This should show icons next to tiddlers changed in the last 10 days. Change recent, if you want a different icon. Icon settings are dependent on TiddlerIconsPluginConfig. w On 5 nov., 04:00, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Eric, and a BIG thank you for your quick reply. Im a little confused. when we use ForEachTiddler we are assigning the list with tags so for example forEachTiddler where 'tiddler.tags.contains(``rximag)' so this brings up our list of tiddlers with rximag, after a while there is quite a lot of tiddlers in that section so next to the name we wanted icons which are new so users can see what is new etc... I have imported what you have asked me to import but how do I assign images to the tiddlers that are new etc.. Regards Philippe On Monday, November 5, 2012 9:19:58 AM UTC+8, Eric Shulman wrote: On Nov 4, 4:24 pm, Philippe De Feularde sa...@burningtastebuds.com wrote: Is there a way to highlight new tiddlers with an icon so users can view the newest tiddlers from the list? We use ForEachTiddler so we just want an icon to highlight the tiddlers that have been changed within the last 30 days or added. Stretching it could there be an icon to see if it’s been changed then a different icon if it has been added? First, import the following plugins: http://www.tiddlytools.com/#TiddlerIconsPlugin http://www.tiddlytools.com/#TiddlerIconsPluginConfig http://www.tiddlytools.com/#AttachFilePluginFormatters Next, import the attachment tiddlers tagged with 'silk' (also from tiddlytools.com). These are the actual .png format icon images used by the above plugins. After saving-and-reloading you can use the tiddlerIcons macro: tiddlerIcons - shows icons for the current tiddler tiddlerIcons =TiddlerName - shows icons for the specified tiddler tiddlerIcons iconID - shows a specific icon For your purposes, you will want embed the tiddlerIcons =TiddlerName macro sequence into your ForEachTiddler output, substituting the name of the tiddler (i.e. tiddler.title) being handled in the foreach processing. When that output is rendered, the tiddlerIcons macro will display the appropriate icons for the named tiddler. QED. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION
[tw] Re: ForEachTiddler
Can I push it - is there a way for another icon for 30 - 60 days ? On Monday, November 5, 2012 7:48:24 PM UTC+8, whatever wrote: Hi! Try the following (beware googlewrap): forEachTiddler script ' function lastDays(tiddler) { var compareDate = new Date(); compareDate.setDate(compareDate.getDate() - 10); if (tiddler.modified compareDate) return * [[ + tiddler.title + ]] tiddlerIcons recent [[= + tiddler.title + ]]\\n; else return * [[ + tiddler.title + ]]\n; }' write 'lastDays(tiddler)' This should show icons next to tiddlers changed in the last 10 days. Change recent, if you want a different icon. Icon settings are dependent on TiddlerIconsPluginConfig. w On 5 nov., 04:00, Philippe De Feularde sa...@burningtastebuds.com wrote: Hi Eric, and a BIG thank you for your quick reply. Im a little confused. when we use ForEachTiddler we are assigning the list with tags so for example forEachTiddler where 'tiddler.tags.contains(``rximag)' so this brings up our list of tiddlers with rximag, after a while there is quite a lot of tiddlers in that section so next to the name we wanted icons which are new so users can see what is new etc... I have imported what you have asked me to import but how do I assign images to the tiddlers that are new etc.. Regards Philippe On Monday, November 5, 2012 9:19:58 AM UTC+8, Eric Shulman wrote: On Nov 4, 4:24 pm, Philippe De Feularde sa...@burningtastebuds.com wrote: Is there a way to highlight new tiddlers with an icon so users can view the newest tiddlers from the list? We use ForEachTiddler so we just want an icon to highlight the tiddlers that have been changed within the last 30 days or added. Stretching it could there be an icon to see if it’s been changed then a different icon if it has been added? First, import the following plugins: http://www.tiddlytools.com/#TiddlerIconsPlugin http://www.tiddlytools.com/#TiddlerIconsPluginConfig http://www.tiddlytools.com/#AttachFilePluginFormatters Next, import the attachment tiddlers tagged with 'silk' (also from tiddlytools.com). These are the actual .png format icon images used by the above plugins. After saving-and-reloading you can use the tiddlerIcons macro: tiddlerIcons - shows icons for the current tiddler tiddlerIcons =TiddlerName - shows icons for the specified tiddler tiddlerIcons iconID - shows a specific icon For your purposes, you will want embed the tiddlerIcons =TiddlerName macro sequence into your ForEachTiddler output, substituting the name of the tiddler (i.e. tiddler.title) being handled in the foreach processing. When that output is rendered, the tiddlerIcons macro will display the appropriate icons for the named tiddler. QED. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR... http://www.TiddlyTools.com/#Donations Professional TiddlyWiki Consulting Services... Analysis, Design, and Custom Solutions: http://www.TiddlyTools.com/#Contact -- 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/-/YfaulRvIr1gJ. 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] ForEachTiddler
Is there a way to highlight new tiddlers with an icon so users can view the newest tiddlers from the list? We use ForEachTiddler so we just want an icon to highlight the tiddlers that have been changed within the last 30 days or added. Stretching it could there be an icon to see if it’s been changed then a different icon if it has been added? Regards Philippe -- 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/-/o0aBnwgjLXwJ. 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.