Was this page helpful?

Wiki.Edit

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    wiki.Edit(label : str?, path : str?, section: str?, button : bool?, args : map?): xml
    

    Insert a link or button to open the editor.

    Usage Restrictions

    8.05 or later; 8.05.1 or later args parameter added

    Parameters

    Name Type Description
    label str (optional, default:"Edit page") label for edit link or button
    path str (optional, default: current page) path to parent page for new page
    section str (optional, default: edit entire page) name of section to edit
    button bool (optional, default: true) show as button
    args map (optional, default: nil) request arguments to pass to page (8.05.1 or later)

     

    Result

    creates a link to an edit page

    Samples

      Output

    to create an edit page:

    {{ wiki.edit() }} 

     

     

     

    Was this page helpful?
    Tag page
    Viewing 2 of 2 comments: view all
    I have trouble creating this command to open an existing page. It always seems to open an new page to edit. I think my path syntax may be wrong:
    {{ wiki.edit {label: "Add news", path: "/page/subpage", section: "Wiki News"} }}
    Posted 08:50, 25 Nov 2008
    There is a bug in 8.08.1 build. It's fixed in the upcoming 8.08.2 though. Sorry for the inconvenience.
    Posted 10:02, 25 Nov 2008
    Viewing 2 of 2 comments: view all
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by