Replies: 4 comments 17 replies
-
The problem with iFrames is that, "html...that needs to be kept for archive" is that it isn't actually capturing anything. It is just creating a "browser within Trilium". So when the site goes away, the iframe doesn't load. I have done about a month's worth of work just focusing on how to integrate an existing codebase into Trilium. While it certainly takes some work, it is ultimately more effective than relying on an outside party. Of course, this only works with Standalone Javascript apps. Things that are much more complex are not possible (or are too work intensive to be worthwhile). Is there a specific site you were hoping to include with Trilium? |
Beta Was this translation helpful? Give feedback.
-
In my use case I'm importing HTML files that have been created with Singlefile extension. I like the way Singlefile includes everything in one HTML file, it's pretty easy to maintain and archive. Plus it's really efficient in capturing pages as you see them. That means the webpage content would be fixed (as it was scrapped), the iframe idea was more about having a way to fully render the page (otherwise when importing, its content is simplified with MD) Right now I'm using Trilium + some Firefox addons (Scrapbee, ex-Scrapbook Plus, and also SingleFile) for storing some webpages, but it's not centralized... My perfect usage for Trilium would be to handle my global personal "knowledge base", mixing and organizing notes, todos, code, but also some contents like html pages, pdf, ... It means something mixing Notes and Document Management. Example : If I plan to buy a house, it's nice not being able to only take notes, but also save static contents for some listings (HTML pages fully rendered with JS as it's everywhere), raw pictures, putting all of this in a structured way like Trilium deals perfectly with.. The direct import already works for PDF or images (a new note is created and content can be seen inside Trillium), but it's not possible with HTML files without loosing some content when simplified (a workaround is to manually import with correct options, then link the note with another one having an iframe to render it correctly) .. Maybe I missed something trivial in my use case that could do that? Of course I can also do it with a screenshot, but it's not the same for searching the page + also not easy to handle with long content pages |
Beta Was this translation helpful? Give feedback.
-
After reading through this thread, I'm working on an addon for Trilium that should improve this experience a bit and not require python running or anything external aside from using the SingleFile extension itself. This would satisfy these requirements that you laid out:
And similar to
And some features specific to this addon:
|
Beta Was this translation helpful? Give feedback.
-
@rauenzi I installed the plugins for Chrome, Brave and Safari saved files, imported saved SingeFile into linux and macosx clients everything worked perfectly. Thanks for this. PS I followed your example for SingleFile settings. Your screenshot is appears to be behind the current extension. PPS Sometimes drag and drop to linux client does not work. The dashed box does not go bold and dropping does nothing. Reloading the front end fixes the issue and I was back in business. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
When importing a HTML file, it's either:
But sometimes it can be useful to have a more faithful copy of the HTML, especially on more complex websites (ajax, ..) that needs to be kept for archive.
I've been looking at singlefile2trilium script, which can work but needs python running.
Would it be possible to have a dedicated "Import as fully rendered HTML" option? This would most likely :
Thank you!
regards,
Beta Was this translation helpful? Give feedback.
All reactions