PreviewFirst

(redirected from Cookbook.PreviewTop)

Summary: How to get the page preview to appear before the edit box
Version: 2.0 beta 44 and later
Prerequisites:
Status:
Maintainer: Petko

Question

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

Answer

PmWiki 2.0 beta 44 and later

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 (now redirected here):

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

User notes +1: If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.