From quanta Fri Nov 30 11:33:40 2007 From: Eric Laffoon Date: Fri, 30 Nov 2007 11:33:40 +0000 To: quanta Subject: Re: [Quanta] New File from Template Question Message-Id: <200711300333.40299.sequitur () kde ! org> X-MARC-Message: https://marc.info/?l=quanta&m=119642317802825 On Monday 26 November 2007 4:09 am, Mike Civil wrote: > Hi All, > > This is a basic question regarding template use which I can't find an > answer for in the docs/Wiki. > > Normally when I'd like to create a html document from a template I'll > be somewhere deep in the project structure and the action I'd like to > take is:- > > - right-click on a directory > - start a "create new file from template" dialogue > - navigate in the dialogue to a template and select it > - give file new name > - carry on editing new file > > However Quanta seems to want me to :- > > - switch to template view > - navigate to the template I want > - right-click on the template > - select "New document based on this" > - bring up the file save dialogue which is based from the > project root > - navigate in that file save dialogue to the place I was already > at in the project view > - save the file with the new name > - switch back to project view > - carry on editing new file > > This is so counter-intuitive and disturbing to work flow that I feel like > I'm missing something really basic somewhere! It's actually quicker > to temporarily open a similar file in project view and copy the > contents into a new file than it is to use a template, which can't be > right. > > Can anyone give me a clue (or a pointer to the relevant place in > the docs) to achieve what I want? > > Cheers, > > Mike There are a few things worth noting here. 1) You have to navigate no matter what 2) New files are *supposed* to open the save dialog at the project document root, not the root. Do you have a document root set? 3) Several other more powerful options are available like creating a site template which will do your navigation for you. Another quite functional option is to create the dialog you want in Kommander. Instead of using the file tree you end up with a button on the toolbar, which is handy because you can have this up even with the file tree collapsed. Here are some of the things you can do with Kommander and DCOP. 1) Get your current project directory and IIRC your current file path should be easy too 2) browse your templates 3) list your favorite or most recently used templates 4) perform automatic operations on file creation to fill in fields in a template You can even use the database plugin with Kommander and do a data merge on file creation. Granted you have to draw a GUI and hook up a little bit of scripting, but it's point and click. If you have any questions how to do it just ask. If you do then you can make it available on our KNewStuff server. -- Eric Laffoon - Quanta+ Team Leader http://quanta.kdewebdev.org _______________________________________________ Quanta mailing list Quanta@mail.kde.org https://mail.kde.org/mailman/listinfo/quanta