Code Examples for Statamic Navigation Structures
Navigation structures in Statamic offer the ability to construct complex page trees with pages and subpages. The following code examples will assist in maintaining and creating these structures. Reset Structure To reset the entire structure of a page, the following code can be used: use Statamic\Facades\Collection; $structure = Collection::findByHandle("pages")->structure(); $tree = $structure->in("de"); $tree->delete(); This code would reset the structure of the d
Webdesigner / Web developer