webflow.createPageFolder()
webflow.createPageFolder()
Creates a new folder on the site.
Syntax
webflow.createPageFolder(): Promise<Folder>
Returns
Promise<Folder>
A Promise that resolves to the newly created folder.
Example
// Create and name new folder
const newFolder = await webflow.createPageFolder()
await newFolder.setName(name)
// Print details
const folderName = await newFolder.getName()
console.log(folderName)
Designer Ability
Designer Ability | Locale | Branch | Workflow | Sitemode |
---|---|---|---|---|
canCreatePage | Any | Any | Any | Design |