PagesExportImport class
This class is in development and not yet ready for use.
$options argument for import methods:
commit
(bool): Commit/save the changes now? Default:true Specify false to perform a test import.update
(bool): Allow update of existing pages? Default:truecreate
(bool): Allow creation of new pages? Default:trueparent
(Page|string|int): Parent Page, path or ID. Omit to use import data Default:0template
(Template|string|int): Template object, name or ID. Omit to use import data Default:0fieldNames
(array): Import only these field names, or omit to use all import data Default:[]changeStatus
(bool): Allow status to be changed aon existing pages? Default:truechangeSort
(bool): Allow sort and sortfield to be changed on existing pages? Default:true
Note: all the "change" prefix options require update=true.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Pages
class also inherits all the methods and properties of: Wire.
Common
Additional methods and properties
In addition to the methods and properties above, Pages
API reference based on ProcessWire core version 3.0.251