--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/20ade4fa-4f1e-4569-8133-3bf3cd4ad1e4n%40googlegroups.com.
One question: In Searchwikis (https://github.com/kookma/TW-Searchwikis) it uses index tiddlers from target wikis to search themThe question is: Can I use Get Remote Tiddlers plugin to automatically update the indeed tiddlers in my main wiki i.e to fetch latest changes?
A more radical question is can " Get Remote Tiddlers " deprecate searchwikis and lets users search other wikis from a central wiki?
Hi Mohammad,
So a lot of things are still up in the air. As I mentioned this is a quick prototype without a lot of pre-planning and I haven't had the chance to figure out a good workflow yet even for my specific needs. I'll try to answer your questions as well as I can at this point,
but some things we may need to discuss and figure out together.
One question: In Searchwikis (https://github.com/kookma/TW-Searchwikis) it uses index tiddlers from target wikis to search themThe question is: Can I use Get Remote Tiddlers plugin to automatically update the indeed tiddlers in my main wiki i.e to fetch latest changes?Yes that should be possible as long as the wikis are on the same domain or served with CORS headers. The catch is that for every wiki, the code will be fetching the entire TW file to extract the tiddlers, which means more bandwidth used and also possibly some lag in the wiki depending on the number of wikis being fetched and the hardware. I want to experiment with using the same technique with an uglified TW with Flibbles' plugin, or a TW with the core in an external js file. Especially the second option should load considerably faster.
Another option that might make the most sense for Searchwikis is to generate and save the index as a separate file. This would need far less bandwidth to fetch and should overall be considerably faster. For wikis served by Github pages we could even try to implement an option to save the index file automatically each time the wiki is saved.
A more radical question is can " Get Remote Tiddlers " deprecate searchwikis and lets users search other wikis from a central wiki?Fetching tiddlers from a remote wiki already entails loading the entire wiki and extracting all its tiddlers and creating an array of tiddler titles. So yes, theoretically you could skip the part of Searchwikis that creates the index and just use Get Remote Tiddlers to create the index for the other wikis. However, the same caveats apply in terms of bandwidth usage and that with many wikis being fetched in the background it could slow down the wiki when that is happening. Using TW files with an external core.js file would be very helpful here.Having to rely on CORS headers being present is indeed a limitation but this overall approach (rather than the code I posted specifically) opens some interesting possibilities as well.
If you're interested, there's a small discussion here about enabling CORS on TiddlyHost: https://github.com/simonbaird/tiddlyhost/issues/112
I am also curious to see if TW on Fission opens up for similar workflows.Cheers,
Saq
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a30adfd0-8d9f-42d8-aea6-e0824c777db6n%40googlegroups.com.
I briefly looked at twederation but it didn't meet this particular requirement which would be very helpful for my intended purposes: "...preferably without needing to have extra plugins installed on the wiki that is the content source".It also wasn't clear to me from the ReadMe or the demo whether fetching tiddlers silently in the background with no user interaction was possible, which is a must for the workflow I will need.
This is really just a quick hack to understand if what I am envisioning is technically possible before I start working out the workflow. Now I need to find the time to flesh out the desired user workflow which is the real challenge and then I'll return to the technical implementation, which may involve use of the core syncer. I decided to share this demo in case it was interesting for others.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/ea4c8e50-7e7d-40b5-9a28-7906d7cee2ban%40googlegroups.com.
Those restrictions still exist. For example, the XMLHttpRequest approach described here generally won’t work from a file: URI, which was a major design goal for the plugin library and Twederation.
It’s definitely time we explored dynamic content loading via XMLHttpRequest in more detail. The constraints get less onerous as we gain better HTTP/HTTPS solutions.
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/7ea4cca2-c07a-486d-a60c-b59c9838c0bdn%40googlegroups.com.
I have got a look at https://saqimtiaz.github.io/sq-tw/temp/get-remote-tiddlers.html but in the "Interactive import" tiddler, the button reads "fetch Undefined widget 'action-getremotetiddler'" and does nothing. I tested it on a recent chromium.
As for me, I would like to be able to transclude tiddlers from other wikis, but not import them per se.