[pmwiki-users] fox: creating a new page

Hans design5 at softflow.co.uk
Sun May 4 06:32:17 CDT 2008


Saturday, May 3, 2008, 3:53:58 PM, noskule wrote:

> In a other case I know the  group where the  page should be saved. The
> pagename  should be generated be  the author  from the title  field. So
> I could do the following:

> PageForms.Blog?editgroup=SomeGroup

>     (:fox ....  edittarget={$?editgroup}.{$$Title} ...
>     (:input text Title:)
>     (:input textarea Text

> unfortunality here I loose the edigroup name if the first form submit 
> attempt fails. What would you recomend to solve this?

It is not clear to me what exactly you wish to achieve.
Do you want to place a link somewhere which opens a form, by which
you can open a new blog page in edit mode?

Normally I would just place a form on a page, which has  a text input
and submit button: A FoxNewPage box. See examples on
http://www.pmwiki.org/wiki/Cookbook/FoxPageManagement

use (:fox .... newedit="{$$Title}" foxgroup=Group ...

newedit opens a new page in edit mode.
If you have template= specified, this will be used to prepopulate
the new page.

If you don't want the form being visible for a start, you could use
togglelink (See Cookbook:ShowHide) to hide it.


  ~Hans




More information about the pmwiki-users mailing list