ProcessPageEdit::getEditUrl() method

Get URL (or form action attribute) for editing this page

Usage

// basic usage
$string = $processPageEdit->getEditUrl();

// usage with all arguments
$string = $processPageEdit->getEditUrl(array $options = []);

Arguments

NameType(s)Description
options (optional)array
  • id (int): Page ID to edit
  • modal (int|string): Modal mode, when applicable
  • context (string): Additional request context string, when applicable
  • language (int|Language|string): Language for editor, if different from user’s language
  • field (string): Only edit field with this name
  • fields (string): CSV string of fields to edit, rather than all fields on apge
  • fnsx (string): Field name suffix, applicable only when field or fields (above) is also set, in specific situations like repeaters
  • `uploadOnlyMode (string|int): Upload only mode (internal use)

Return value

string


ProcessPageEdit methods and properties

API reference based on ProcessWire core version 3.0.244

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK