[tw] Re: List tiddler links in drop down boxes or as a list of letters
Hi Mans, This sounds very useful for all kinds of plugins rendering lists. However, I am not familiar with building this templating into a plugin. Would someone a little bit more core-literate be able to tell me if the critical part for doing this simply is to pass a tiddler reference to the wikify function as is done in the list macro like so... wikify(template, li, null, tiddler); ? I guess it would likewise make sense to also make use of the core's filter mechanism. Does anyone know in detail what the list filter mechanism is capable of doing and whether there are enhanced filtering abilities in TiddlySpace? Tobias. -- 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/-/e-vFo1eoktAJ. 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: List tiddler links in drop down boxes or as a list of letters
On May 13, 8:44 pm, Tobias Beer beertob...@googlemail.com wrote: Would someone a little bit more core-literate be able to tell me if the critical part for doing this simply is to pass a tiddler reference to the wikify function as is done in the list macro like so... wikify(template, li, null, tiddler); In the case of list plugin ... yes The default list macro template is: view title link The view macro needs the tiddler context (object) to work with. In the case of your plugin, imo it would be a bit trickier. If I'm right, you create a shadow tiddler and wikify it afterwards. So your template is the shadow tiddler, which is hardcoded atm. Imo you'd need to resolve the user template within your shadow tiddler creation. I guess it would likewise make sense to also make use of the core's filter mechanism. If you do so, it would be wise to be MatchTagsPlugin compatible. It extends the list filter [tag[]] mechanism to be able to use AND, OR, NOT ... You may want to use it ... and ... You shouldn't break it. Does anyone know in detail what the list filter mechanism is capable of doing and whether there are enhanced filtering abilities in TiddlySpace? Default TiddlySpace expands it with the is public/private filter. Open the source and search for config.filters. See the core Filters.js [2] and Macros.js files for more info. If you have a look at my NoCaseListPlugin [1] you can see, how to extend the list macro with your own filter eg: list noCase which just addes a noCase extension. hope that helps -mario [1] http://apm-plugins.tiddlyspot.com/#NoCaseListPlugin [2] https://github.com/TiddlyWiki/tiddlywiki/blob/master/js/Filters.js -- 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] loadTiddlersPlugin problem
Hi All I have asked this before, and still cant get around it...cant see why in some cases I get this error and others not. At the moment...I have two TWs , same version (almost identical contents) in the same folder.when I try to use LoadTiddlersPlugin (Eric) I get an error and the message - Erro ao executar a macro loadTiddlers: [Exception... Component returned failure code: 0x805e (NS_ERROR_ILLEGAL_INPUT) [nsIScriptableUnicodeConverter.ConvertToUnicode] nsresult: 0x805e (NS_ERROR_ILLEGAL_INPUT) location: JS frame :: file:///C:/Users/Skye/DropBoxing/SAUB/Dropbox/Curso/Notas/emptyIvone.html :: mozConvertUTF8ToUnicode :: line 11833 data: no] . where emptyIvone.html is the TW thats throwing this error. The end of the error code says data:no . but there is a tiddler in the other file that complies with the loadTiddlersPlug filter conditions and it does have data in it...it seems a normal tiddler!!! Can someone give a clue as to why this is happening and some way around it. Thanks in Advance Skye -- 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: loadTiddlersPlugin problem
I am no expert but given the wonky nature of the error messages, it would appear that at least some of your tiddler macro text is in unicode and parts are not. Try a fresh tiddlywiki and re-load the plugins from their source. See if that helps, at least in a simple test scenario. ...Lyall On Monday, May 14, 2012 12:30:34 PM UTC+9:30, skye riquelme wrote: Hi All I have asked this before, and still cant get around it...cant see why in some cases I get this error and others not. At the moment...I have two TWs , same version (almost identical contents) in the same folder.when I try to use LoadTiddlersPlugin (Eric) I get an error and the message - Erro ao executar a macro loadTiddlers: [Exception... Component returned failure code: 0x805e (NS_ERROR_ILLEGAL_INPUT) [nsIScriptableUnicodeConverter.ConvertToUnicode] nsresult: 0x805e (NS_ERROR_ILLEGAL_INPUT) location: JS frame :: file:///C:/Users/Skye/DropBoxing/SAUB/Dropbox/Curso/Notas/emptyIvone.html :: mozConvertUTF8ToUnicode :: line 11833 data: no] . where emptyIvone.html is the TW thats throwing this error. The end of the error code says data:no . but there is a tiddler in the other file that complies with the loadTiddlersPlug filter conditions and it does have data in it...it seems a normal tiddler!!! Can someone give a clue as to why this is happening and some way around it. Thanks in Advance Skye -- 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/-/oUFV9Ow22QYJ. 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.