[dokuwiki] Re: Specifying page template for new pages in URL

Hi Jason,

have a look at http://wiki.gammaproduction.de/english/dokuwiki/plugins/tplswitcher maybe there is something that might help you. The only problem i figured is, that the template change has to be registered in a session so that the style will be loaded correctly too. Give it a try.

Gerry.

Jason Grout wrote:
Hi everyone,

I'm trying to make my classroom wiki easier to use for my students. I use the namespace template to provide templates for student pages that answer homework questions. However, this is awkward for a few reasons:

1. If student homework answer pages are in different namespaces, then I have to copy the _template.txt file to each namespace. I can't do this directly because dokuwiki creates the directories, so I can't just copy things around on the server. I know how to work around this, but it's just awkward (right now I use PHPShell to work from the commandline as the webserver).

2. If the homework answer pages are in the same namespace, but require different templates, it's not possible to use the namespace template feature.

It would be nice if I could specify a template to use in the URL. Then, for example, the addnewpage plugin could be modified so I could write something like:

To submit homework assignment 2, type a page name here and press the "Add Page" button:

{{NEWPAGE>:homework: | template=:homeworktemplates:homework1}}


Is there a way to specify in the URL a template to use when creating a page? I'm thinking of something like:

doku.php?id=:homework:problem20&do=edit&rev=&template=:homework:homework2



Thanks,

Jason
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: