folder.getName()
folder.getName()
Retrieve the name of the folder.
Syntax
folder.getName(): Promise<string>
Returns
Promise<String>
A Promise that resolves to a string
value of the folder name.
// Get all Pages and folders
const pagesAndFolders = await webflow.getAllPagesAndFolders()
for (let folder of pagesAndFolders) {
const folderName = await folder.getName()
const type = folder.type
console.log(folderName, type)
}
Designer Ability
Designer Ability | Locale | Branch | Workflow | Sitemode |
---|---|---|---|---|
canReadPageSettings | Any | Any | Any | Any |