Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

PreviewFirst

Summary: How to get the page preview to appear before the edit box
Version:
Prerequisites:
Status:
Maintainer:

Question

How can I get the page preview to appear before the edit box?

Answer

To adjust the position of the page preview, edit the Site.EditForm special page on your wiki.

PmWiki versions 2.0.beta43 and earlier

This recipe can be only useful for sites running PmWiki version 2.0.beta43 and earlier.

The following was copied from the very similar PreviewTop page:
 
This recipe is superceded by 2.0.beta44. Now to adjust the position of the page preview, edit the Site.EditForm page on your site. --Pm
 
What that comment does not mention is that if you continue to use the old syntax that follows below, you will get the old edit form.
-Jefferson (14 August 2005)

Add the following line to a local customization:

    $HandleEditFmt = array(&$PageStartFmt,&$PagePreviewFmt,
      &$PageEditFmt,&$PageEndFmt);

Discussion

This simply changes $HandleEditFmt to reverse the order of the page preview output (in $PagePreviewFmt) and the edit box in ($PageEditFmt). This page has this customization enabled, so that previews appear above the edit box.

Contributors

  • Pm, 21-Jun-2004
Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 11:42 AM