Re: [Zim-wiki] Creating new pages from a template
On Mon, Feb 11, 2013 at 12:30 PM, Mark Hughes (Zim mailing list) m...@happybeing.com wrote: Zim uses the term template for and export. I'm interested in having templates for creating new Zim pages and wonder if there is a mechanism for this. There is a hidden feature in the code that I will enable after fixing number of outstanding design items. (As you may have noticed, dev pace is slow at the moment, so may take some time.) But the intended feature is single page only, not sub-tree. If not, what would the neatest way to create new pages -- or rather a subtree of several pages -- based on some a pre-defined subtree of Wiki content? I currently use KeyNoteNF for this but am migrating gradually to Zim. My scenario is that whenever I set up a new project for a website client I have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders for client information, standard tasks and so on. I create a copy of this and then rename/search and replace with the client name/web domain etc. I think you could do the copy replace in a small shell script. Add this script to zim as a custom tool that takes page name as input. This would enable a work flow where you go to a new page and then trigger the tool from the tools menu to populate the page. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Creating new pages from a template
Thanks Jaap, Dev pace is what it is - your speed of support/response is very helpful. Another way to handle this case might be a Copy Subtree / Paste Subtree on tree node context menu (which is how I do this in KeyNoteNF). I can do a scripted solution, but won't go there while I'm mainly on Windows! Regards, Mark On 11/02/2013 11:35, Jaap Karssenberg wrote: On Mon, Feb 11, 2013 at 12:30 PM, Mark Hughes (Zim mailing list) m...@happybeing.com wrote: Zim uses the term template for and export. I'm interested in having templates for creating new Zim pages and wonder if there is a mechanism for this. There is a hidden feature in the code that I will enable after fixing number of outstanding design items. (As you may have noticed, dev pace is slow at the moment, so may take some time.) But the intended feature is single page only, not sub-tree. If not, what would the neatest way to create new pages -- or rather a subtree of several pages -- based on some a pre-defined subtree of Wiki content? I currently use KeyNoteNF for this but am migrating gradually to Zim. My scenario is that whenever I set up a new project for a website client I have a pre-defined wiki (actually KeyNoteNF subtree) with placeholders for client information, standard tasks and so on. I create a copy of this and then rename/search and replace with the client name/web domain etc. I think you could do the copy replace in a small shell script. Add this script to zim as a custom tool that takes page name as input. This would enable a work flow where you go to a new page and then trigger the tool from the tools menu to populate the page. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp
Re: [Zim-wiki] Creating new pages from a template
On Mon, Feb 11, 2013 at 12:43 PM, Mark Hughes (Zim mailing list) m...@happybeing.com wrote: I can do a scripted solution, but won't go there while I'm mainly on Windows! A .bat file should work fine I think :) Adding a copy option that allows also copying child pages sound like a good idea as well. Regards, Jaap ___ Mailing list: https://launchpad.net/~zim-wiki Post to : zim-wiki@lists.launchpad.net Unsubscribe : https://launchpad.net/~zim-wiki More help : https://help.launchpad.net/ListHelp