folder.getSlug()

Get the folder’s slug.

Syntax

1folder.getSlug(): Promise<string>

Returns

Promise<string>

A Promise that resolves to a string value of the folder slug.

TypeScript
1// Get all Pages and folders
2const pagesAndFolders = await webflow.getAllPagesAndFolders()
3
4for (let folder of pagesAndFolders) {
5
6 const folderSlug = await folder.getSlug()
7 console.log("Slug", folderSlug)
8}

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny