Not logged in. · Lost password · Register
Forum: General Help and Support Plugins RSS
Form to create new pages with Bureaucracy and Tplinc
How to use the main page's namespace
Sand #1
Member since Mar 2019 · 2 posts · Location: France
Group memberships: Members
Show profile · Link to this post
Subject: Form to create new pages with Bureaucracy and Tplinc

I made with Bureaucracy a form to help users to create a new page or new namespace under the current namespace :

action   template pagetemplates:page ".:@@Nom de la nouvelle page : @@"

fieldset "Créer une nouvelle page dans cette rubrique"
textbox  "Nom de la nouvelle page : "
submit   "Créer la page"

action   template pagetemplates:categorie ".:@@Nom de la nouvelle rubrique : @@:start"

fieldset "Créer une nouvelle sous-rubrique"
textbox  "Nom de la nouvelle rubrique : "
submit   "Créer la rubrique"

Now i'd like to use Tplinc to put this form in the bottom of each namespace's start page.

So I've createt a page with my form, which I call with the Tplinc plugin :

Pattern : /start$/
Page : pagetemplates:lien_nouveau_contenu
Location : At the bottom inside the content box

The trouble is it doesn't create the new page or namespace under the current namespace, but in the pagetemplates namespace.

Did I miss something ? Or do you have an idea of another solution ?

Thanks !
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2020-04-06, 05:18:23 (UTC +02:00)