I'm working at a plugin called 'NewArticleWizard' which leeds useres through writing new articles. By this process I've stored some information in a session:
PHP Code: | | |$_SESSION['wizard'] |
In the final step this selections as selected catagories , a predefinied pattern should load in the editor at the bottm, so if the user begins to write his article he begins at the top of the textarea.
So how can I implement this???
Have you considered using templates? The wizard could prompt for the "fields" and send the result for "transclusion" (http://en.wikipedia.org/wiki/Wikipedia:Transclusion).
http://www.mediawiki.org/wiki/Help:Templates or http://www.mediawiki.org/wiki/Help:Templates/de
Mark W.