[dokuwiki] Re: Specifying page template for new pages in URL
- From: Anthony.Caetano@xxxxxxxxxxxx
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Thu, 22 Feb 2007 10:46:14 +0200
Hi
Gerry, you are conflating layout templates (css, images, etc) used to view
the wiki with page templates used when *editing* pages and rather
inflexibly implemented in dokuwiki with _template.txt in a namespace see
http://wiki.splitbrain.org/wiki:namespace_templates .
Jason, I agree a more flexible mechanism is needed... at the moment
there appears to be only
http://wiki.splitbrain.org/plugin:template_chooser which I haven't tried,
and requires hacking various js bit and which might be out of date...
Regards
-ant
dokuwiki-bounce@xxxxxxxxxxxxx wrote on 2007/02/22 10:07:58 AM:
> 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
Disclaimer
Sanlam Life Insurance Limited Reg no 1998/021121/06 - Licensed Financial
Services Provider
Disclaimer and Directors
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- Follow-Ups:
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Andreas Gohr
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- References:
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Gerry Weißbach
Other related posts:
- » [dokuwiki] Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- » [dokuwiki] Re: Specifying page template for new pages in URL
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Andreas Gohr
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Jason Grout
- [dokuwiki] Re: Specifying page template for new pages in URL
- From: Gerry Weißbach