Here's a free feature for you, include in next version? (Damian?)
Hi there,
Editing blog posts gives you the option to either 'save' (saves the data, but doesn't return you to the blog listing) or 'save & exit' (saves the data, returns you to the blog listing). The first option is very handy to quickly save what you have written while continue adding more text. This is basically what you would also do in Word, to prevent complete data loss if the computer might crash.
I wondered if I could do the same with wikipages, as they can get rather lengthy and this feature therefore is a lot more useful there.
So... with Damian's pointer and the challenge accepted to hack my way through, I have come up with an extremely easy fix that will give the wiki pages the same functionality.
If you like what you see, you could add it to the next release or something. Because this forum post doesn't allow me to publish real code, please e-mail me for more details. But, you're the developers, I hardly think you need my exact pointers
tiki-editpage.tpl
- First of all, I have renamed 'save' to 'quick save' and 'save & exit' to 'save'. I find this easier to understand (also in the blog section).
- In the table area where it shows the preview etc. buttons, I created an extra one and named it quick_save.
tiki-editpage.php
- Where it says "if $_REQUEST%22save%22)" I have added "or isset($_REQUEST%22quick_save%22".
- At the end of this if clause, I find the header function, which redirects to tiki-index.php. I have created a if clause, that determines whether 'save' was requested or 'quick_save'. The first redirects to tiki-index.php, the second redirects to tiki-editpage.php.
That is all! Hope you like it.
Regards,
WillemB