Administration

Block core/router_links

class B_core__router_links extends \Cascade\Core\Block

Description

Extract links from router's config file and build menu from them. Useful
when website navigation is not finished yet. Works well with core/out/menu.

Inputs

InputDefault valueDefault connectionComment
confignullConfiguration or filename where configuration is.
flat_listfalseBuild flat listing instead of tree structure
title_key'title'Key used for title in menu item
title_fmt'{title}'Format of title (use any variable set in routes)
link_key'link'Key used for link in menu item
link_fmt'{route}'Format of title (use any variable set in routes)
children_key'children_key'Key used for nesting children items
enable_key'block'This value must be set to show the item

Outputs

OutputComment
links
done

Cascade