folder.getSlug()
folder.getSlug()
Get the folder's slug.
Syntax
folder.getSlug(): Promise<string>
Returns
Promise<string
>
A Promise that resolves to a string
value of the folder slug.
// Get all Pages and folders
const pagesAndFolders = await webflow.getAllPagesAndFolders()
for (let folder of pagesAndFolders) {
const folderSlug = await folder.getSlug()
console.log("Slug", folderSlug)
}
Designer Ability
Designer Ability | Locale | Branch | Workflow | Sitemode |
---|---|---|---|---|
canReadPageSettings | Any | Any | Any | Any |